From c74d0a70f2f2d42b8e832393c77bd5c898fc858f Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 11 Dec 2020 14:22:12 +0300 Subject: [PATCH] fix tbxLeaseObjectCount fill --- .../Effects/reactions/loadKpReaction/index.ts | 7 ++++--- .../Effects/reactions/loadKpReaction/quoteQuery.js | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts index 577df7e..1762d09 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts @@ -214,9 +214,10 @@ const loadKpReaction: IReactionEffect = calculationStore => ({ ); const tbxLeaseObjectCount = { - leaseObjectCount: calculationStore.values.recalcWithRevision - ? quote.evo_recalc_limit - : quote.evo_object_count, + leaseObjectCount: + calculationStore.values.recalcWithRevision + ? quote.evo_recalc_limit + : quote.evo_object_count, }; calculationStore.setValues({ diff --git a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/quoteQuery.js b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/quoteQuery.js index 9a9b3dc..592a360 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/quoteQuery.js +++ b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/quoteQuery.js @@ -27,6 +27,8 @@ export default gql` evo_first_payment_perc evo_last_payment_perc evo_quotename + evo_recalc_limit + evo_object_count } } `;