From 3c760505d99002ac3fe317c94c8bc2f27da58552 Mon Sep 17 00:00:00 2001 From: carkom Date: Fri, 19 Jan 2024 15:01:31 +0000 Subject: [PATCH] fix broken table --- .../reports/graphs/tableGraph/ReportTable.tsx | 3 +-- .../reports/graphs/tableGraph/ReportTableList.tsx | 12 ++++-------- .../reports/graphs/tableGraph/ReportTableRow.tsx | 1 + 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx index ca7f71188d9..4d380951f1d 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx @@ -50,10 +50,9 @@ export function ReportTable({ }); const renderItem = useCallback( - ({ item, groupByItem, mode, style, key, monthsCount }) => { + ({ item, groupByItem, mode, style, monthsCount }) => { return ( { return ( diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx index adf237c4783..b0adffaa2dd 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx @@ -31,6 +31,7 @@ export const ReportTableRow = memo( const average = amountToInteger(item[balanceTypeOp]) / monthsCount; return (