From 6c3b93c91499c0feb31e387d4675a6ae79652d52 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 19 Apr 2023 23:46:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=80=D0=B5=D0=B0=D0=BA=D1=86=D0=B8=D1=8E=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8E=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20=D0=9C?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2=20=D1=80=D0=B0=D1=81=D1=87?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=20CalcType=20=D0=B8=20=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B6=D0=B0=D1=82=D1=8C=20=D0=B2=D1=81=D0=B5?= =?UTF-8?q?=D0=B3=D0=B4=D0=B0=20=D0=B2=D1=81=D0=B5=203=20=D0=B7=D0=BD?= =?UTF-8?q?=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=BA=D0=B0=20(Irr=3F=20=D0=A1=D1=83=D0=BC=D0=BC=D0=B0,=20?= =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B6=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/process/configurator/reactions/filters.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/process/configurator/reactions/filters.ts b/apps/web/process/configurator/reactions/filters.ts index 8dcc8ed..7db5bf8 100644 --- a/apps/web/process/configurator/reactions/filters.ts +++ b/apps/web/process/configurator/reactions/filters.ts @@ -4,6 +4,7 @@ import * as CRMTypes from '@/graphql/crm.types'; import { SEASON_TYPES } from '@/process/payments/lib/seasons-constants'; import type { ProcessContext } from '@/process/types'; import { normalizeOptions } from '@/utils/entity'; +import { disposableReaction } from '@/utils/mobx'; import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; import { reaction } from 'mobx'; @@ -305,7 +306,8 @@ export default function reactions({ store, apolloClient, user }: ProcessContext) * radioCalcType фильтровать значения согласно списку * в поле "Доступные Методы расчета в калькуляторе" evo_calculation_method в selectProduct */ - reaction( + disposableReaction( + () => $process.has('Unlimited'), () => $calculation.element('selectProduct').getValue(), async (productId) => { const IRRCalcTypeOptions = radioCalcType.filter((x) => x.value === 100_000_000);