From 0a413f4eb73cc827a7878828bd0b79b6ff052e72 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 11 Jan 2023 15:59:16 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BA=D1=86=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20selectDealerBroker:=20=D0=B5=D1=81=D0=BB=D0=B8=20selec?= =?UTF-8?q?tDealerBroker=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B5,=20=D1=82?= =?UTF-8?q?=D0=BE=20=D0=BF=D0=BE=D0=BB=D0=B5=20selectDealerBrokerRewardCon?= =?UTF-8?q?dition=20=D1=81=D0=B1=D1=80=D0=B0=D1=81=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5,=20?= =?UTF-8?q?=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B8=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B8=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B5:=20=D0=BE=D0=B1=D0=BD=D1=83=D0=BB=D1=8F=D0=B5=D0=BC=20?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D0=BC?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D1=8F=20selectDealerRewardCondition=20(?= =?UTF-8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?= =?UTF-8?q?=D1=81=D0=BC.=20=D0=A1=D0=B0=D0=BB=D0=BE=D0=BD=20=D0=9E=D0=9E?= =?UTF-8?q?=D0=9E=20=D0=90=D1=80=D0=BA=D1=82=D0=B8=D0=BA-=D0=A1=D0=B8?= =?UTF-8?q?=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/process/supplier-agent/reactions/supplier.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/process/supplier-agent/reactions/supplier.ts b/apps/web/process/supplier-agent/reactions/supplier.ts index 3f871be..738fc9f 100644 --- a/apps/web/process/supplier-agent/reactions/supplier.ts +++ b/apps/web/process/supplier-agent/reactions/supplier.ts @@ -180,10 +180,10 @@ export function commonReactions({ store, apolloClient }: ReactionsContext) { ); reaction( - () => $calculation.element('selectDealerBrokerRewardCondition').getValue(), - (dealerBrokerRewardConditionId) => { - if (dealerBrokerRewardConditionId) { - $calculation.element('selectDealerPerson').resetValue(); + () => $calculation.element('selectDealerBroker').getValue(), + (dealerBroker) => { + if (dealerBroker) { + $calculation.element('selectDealerRewardCondition').resetValue(); } } );