From 681fe6139a13b18368789e4d227ca90a6795033b Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 14 Aug 2024 14:16:38 +0300 Subject: [PATCH] Revert "enable init elt on load-kp" This reverts commit c6f0474f66670c85dcd60d703e757cb6b00ccc3b. --- apps/web/process/elt/reactions/common.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/web/process/elt/reactions/common.ts b/apps/web/process/elt/reactions/common.ts index 523589a..100fed4 100644 --- a/apps/web/process/elt/reactions/common.ts +++ b/apps/web/process/elt/reactions/common.ts @@ -1,6 +1,6 @@ import type { ProcessContext } from '../../types'; import helper from '../lib/helper'; -import { disposableDebouncedReaction, disposableReaction } from '@/utils/mobx'; +import { disposableReaction } from '@/utils/mobx'; import { comparer, toJS } from 'mobx'; export default function reactions(context: ProcessContext) { @@ -9,8 +9,8 @@ export default function reactions(context: ProcessContext) { const { init } = helper(context); - disposableDebouncedReaction( - () => $process.has('ELT'), + disposableReaction( + () => $process.has('ELT') || $process.has('LoadKP'), () => ({ values: $calculation.$values.getValues([ 'objectRegistration', @@ -55,12 +55,11 @@ export default function reactions(context: ProcessContext) { delay: 10, equals: comparer.shallow, fireImmediately: true, - wait: 100, } ); - disposableDebouncedReaction( - () => $process.has('ELT'), + disposableReaction( + () => $process.has('ELT') || $process.has('LoadKP'), () => ({ values: $calculation.$values.getValues([ 'legalClientRegion', @@ -112,7 +111,6 @@ export default function reactions(context: ProcessContext) { delay: 10, equals: comparer.shallow, fireImmediately: true, - wait: 100, } );