diff --git a/packages/reports/src/Containers/profit-table.tsx b/packages/reports/src/Containers/profit-table.tsx index f2e743e65734..5e1d6a626160 100644 --- a/packages/reports/src/Containers/profit-table.tsx +++ b/packages/reports/src/Containers/profit-table.tsx @@ -102,7 +102,8 @@ const ProfitTable = ({ ); const columns = getProfitTableColumnsTemplate(currency, data.length); - const columns_map = Object.fromEntries(columns.map(({ col_index, ...props }) => [col_index, { ...props }])) as { + + const columns_map = Object.fromEntries(columns.map(column => [column.col_index, column])) as { [key in TColIndex]: TColumnTemplateType; };