From 49829dac923636fdf14b8bbffdd59dd7eb94413c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A7=D0=B8=D0=BA=D0=B0=D0=BB=D0=BA=D0=B8=D0=BD?= Date: Wed, 23 Sep 2020 17:09:42 +0300 Subject: [PATCH] move request to effect --- src/client/Containers/Calculation/index.jsx | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/client/Containers/Calculation/index.jsx b/src/client/Containers/Calculation/index.jsx index 4294a1a..7c4cc2b 100644 --- a/src/client/Containers/Calculation/index.jsx +++ b/src/client/Containers/Calculation/index.jsx @@ -18,19 +18,19 @@ const Calculation = () => { .catch(err => { throw err; }); - }, []); - CalculationService.getEntityOptions({ - entityName: 'lead', - fields: undefined, - where: undefined, - }) - .then(leadOptions => { - calculationStore.applyOptions({ selectLead: leadOptions }); + CalculationService.getEntityOptions({ + entityName: 'lead', + fields: undefined, + where: undefined, }) - .catch(err => { - throw err; - }); + .then(leadOptions => { + calculationStore.applyOptions({ selectLead: leadOptions }); + }) + .catch(err => { + throw err; + }); + }, []); return (