Skip to content

Commit

Permalink
Fix table not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
alex6480 committed Sep 23, 2023
1 parent 21de731 commit 9501eaf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function CsvMappingTransactionTable (props: Props): React.ReactEl
return <p>{t("common.loading_please_wait")}</p>;
}

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 <Table pageSize={20}
items={items}
Expand Down Expand Up @@ -63,7 +63,7 @@ export default function CsvMappingTransactionTable (props: Props): React.ReactEl
<td>
{props.options.destinationAccountType === "single"
? (transaction.destination !== null ? <AccountLink account={transaction.destination} targetBlank={true} /> : <>{t("common.none")}</>)
: <Tooltip content={t("transaction.identifier_value", { value: transaction.sourceText })}>
: <Tooltip content={t("transaction.identifier_value", { value: transaction.destinationText })}>
{transaction.destination !== null ? <AccountLink account={transaction.destination} targetBlank={true} /> : <>{t("common.none")}</>}
</Tooltip>}
</td>
Expand Down

0 comments on commit 9501eaf

Please sign in to comment.