From 149e73fba83ce3a332254669f1641083788f1588 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 22 Feb 2022 13:58:29 +0300 Subject: [PATCH] reset brand if leaseObjectType is empty --- .../CalculationStore/Effects/reactions/otherReactions.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index dc46991..7e8613f 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -1475,6 +1475,13 @@ const reactionEffects: IReactionEffect[] = [ }, }), + calculationStore => ({ + expression: () => calculationStore.getValue('leaseObjectType'), + effect: leaseObjectType => { + !leaseObjectType && calculationStore.setValue('brand', null); + }, + }), + calculationStore => ({ expression: () => { return {