From 9501eafe328b0d97ebbb10d9b20f11f79603a8c8 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 23 Sep 2023 15:32:20 +0200 Subject: [PATCH] Fix table not updating --- .../import/MapCsvFields/CsvMappingTransactionTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/transaction/import/MapCsvFields/CsvMappingTransactionTable.tsx b/frontend/src/components/transaction/import/MapCsvFields/CsvMappingTransactionTable.tsx index dd3a1c1..5749876 100644 --- a/frontend/src/components/transaction/import/MapCsvFields/CsvMappingTransactionTable.tsx +++ b/frontend/src/components/transaction/import/MapCsvFields/CsvMappingTransactionTable.tsx @@ -28,7 +28,7 @@ export default function CsvMappingTransactionTable (props: Props): React.ReactEl return

{t("common.loading_please_wait")}

; } - const items = React.useMemo(() => props.transactions.filter(props.tableFilter), [props.tableFilter]); + const items = React.useMemo(() => props.transactions.filter(props.tableFilter), [props.tableFilter, props.transactions]); return {props.options.destinationAccountType === "single" ? (transaction.destination !== null ? : <>{t("common.none")}) - : + : {transaction.destination !== null ? : <>{t("common.none")}} }