reset brand if leaseObjectType is empty

This commit is contained in:
vchikalkin 2022-02-22 13:58:29 +03:00
parent 0b89b59e03
commit 149e73fba8

View File

@ -1475,6 +1475,13 @@ const reactionEffects: IReactionEffect[] = [
},
}),
calculationStore => ({
expression: () => calculationStore.getValue('leaseObjectType'),
effect: leaseObjectType => {
!leaseObjectType && calculationStore.setValue('brand', null);
},
}),
calculationStore => ({
expression: () => {
return {