move request to effect
This commit is contained in:
parent
b0473e9686
commit
49829dac92
@ -18,19 +18,19 @@ const Calculation = () => {
|
|||||||
.catch(err => {
|
.catch(err => {
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
}, []);
|
|
||||||
|
|
||||||
CalculationService.getEntityOptions({
|
CalculationService.getEntityOptions({
|
||||||
entityName: 'lead',
|
entityName: 'lead',
|
||||||
fields: undefined,
|
fields: undefined,
|
||||||
where: undefined,
|
where: undefined,
|
||||||
})
|
|
||||||
.then(leadOptions => {
|
|
||||||
calculationStore.applyOptions({ selectLead: leadOptions });
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.then(leadOptions => {
|
||||||
throw err;
|
calculationStore.applyOptions({ selectLead: leadOptions });
|
||||||
});
|
})
|
||||||
|
.catch(err => {
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box mx={['0', '1%', '1%', '1.5%', '2%', '10%']}>
|
<Box mx={['0', '1%', '1%', '1.5%', '2%', '10%']}>
|
||||||
|
|||||||
Reference in New Issue
Block a user