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 (