enable leaseObjectType reactions when loadkp
This commit is contained in:
parent
91e16ca8ff
commit
e1c3135560
@ -1,8 +1,6 @@
|
||||
import { openNotification } from 'client/Elements/Notification';
|
||||
import { IAutorunEffect } from 'core/types/Calculation/Store/effect';
|
||||
import { Process } from 'core/types/Calculation/Store/process';
|
||||
import { ElementStatus } from 'core/types/statuses';
|
||||
import { calculationProcess } from '..';
|
||||
|
||||
const autorunEffects: IAutorunEffect[] = [
|
||||
calculationStore => () => {
|
||||
@ -121,10 +119,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
},
|
||||
|
||||
calculationStore => () => {
|
||||
if (calculationProcess.process !== Process.Default) {
|
||||
return;
|
||||
}
|
||||
|
||||
calculationStore.setFilter('selectLeaseObjectCategory', undefined);
|
||||
|
||||
const { leaseObjectType: leaseObjectTypeId } = calculationStore.values;
|
||||
@ -213,10 +207,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
},
|
||||
|
||||
calculationStore => () => {
|
||||
if (calculationProcess.process !== Process.Default) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { leaseObjectType: leaseObjectTypeId } = calculationStore.values;
|
||||
if (!leaseObjectTypeId) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user