fix transfort insurannce table for request
This commit is contained in:
parent
261e082f60
commit
f5c6bd7539
@ -160,11 +160,13 @@ const actions: TAction = {
|
||||
const { values, tables } = CalculationStore;
|
||||
const calculationRes = await actions.calculate();
|
||||
|
||||
const insurances = tables.tableInsurance.rows.map(insuranceRow =>
|
||||
Object.keys(insuranceRow).map(prop => ({
|
||||
[prop]: insuranceRow[prop].value,
|
||||
})),
|
||||
);
|
||||
const insurances = tables.tableInsurance.rows.map(insuranceRow => {
|
||||
const resObj = {};
|
||||
Object.keys(insuranceRow).map(prop => {
|
||||
resObj[prop] = insuranceRow[prop].value;
|
||||
});
|
||||
return resObj;
|
||||
});
|
||||
|
||||
console.log('insurances', insurances);
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user