fix reset validation
This commit is contained in:
parent
e1c3135560
commit
3e942a95d6
@ -127,8 +127,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
'selectLeaseObjectCategory',
|
||||
ElementStatus.Default,
|
||||
);
|
||||
calculationStore.setValidation('tbxCountSeats', undefined);
|
||||
calculationStore.setValidation('tbxMaxMass', undefined);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -207,14 +205,14 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
},
|
||||
|
||||
calculationStore => () => {
|
||||
calculationStore.setValidation('tbxCountSeats', true);
|
||||
calculationStore.setValidation('tbxMaxMass', true);
|
||||
|
||||
const { leaseObjectType: leaseObjectTypeId } = calculationStore.values;
|
||||
if (!leaseObjectTypeId) {
|
||||
return;
|
||||
}
|
||||
|
||||
calculationStore.setValidation('tbxCountSeats', undefined);
|
||||
calculationStore.setValidation('tbxMaxMass', undefined);
|
||||
|
||||
const leaseObjectType = calculationStore.options.selectLeaseObjectType?.find(
|
||||
x => x.evo_leasingobject_typeid === leaseObjectTypeId,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user