From e6dde2a90c990da64f730d97ba0cadb553e931b5 Mon Sep 17 00:00:00 2001 From: carkom Date: Wed, 6 Dec 2023 09:52:42 +0000 Subject: [PATCH] remove indexStack --- .../desktop-client/src/components/reports/util.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/desktop-client/src/components/reports/util.ts b/packages/desktop-client/src/components/reports/util.ts index 4d28f2ee4d4..35ff2166e5b 100644 --- a/packages/desktop-client/src/components/reports/util.ts +++ b/packages/desktop-client/src/components/reports/util.ts @@ -29,17 +29,6 @@ export function index< return result; } -export function indexStack< - T extends Record, - K extends keyof T, ->(data: T[], fieldName: K, field: K) { - const result: Record = {}; - data.forEach(item => { - result[item[fieldName]] = item[field]; - }); - return result; -} - export function indexCashFlow< T extends { date: string; isTransfer: boolean; amount: number }, >(data: T[], date: string, isTransfer: string) {