diff --git a/www/src/components/Table/index.tsx b/www/src/components/Table/index.tsx index 8676262b..4abf8aaf 100644 --- a/www/src/components/Table/index.tsx +++ b/www/src/components/Table/index.tsx @@ -123,17 +123,15 @@ export default function Table() { const rowHeight = tableState.config.rowHeight; const rows = tableState.rows; - //const rowGetter = (rowIdx: number) => rows[rowIdx]; - const rowGetter = (rowIdx: number) => ({ - ...rows[rowIdx], - ...columns.reduce( + + const rowGetter = (rowIdx: number) => + columns.reduce( (acc, currColumn) => ({ ...acc, [currColumn.key]: _get(rows[rowIdx], currColumn.key), }), {} - ), - }); + ); let tableWidth: any = `calc(100% - ${ DRAWER_COLLAPSED_WIDTH