From 3110cab06b37ce3728a7a8ab3c6adb768d4affe9 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins <matiss@mja.lv> Date: Mon, 2 Jan 2023 19:43:16 +0000 Subject: [PATCH] prune: remove more scrollTo code --- .../src/components/accounts/TransactionList.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/desktop-client/src/components/accounts/TransactionList.js b/packages/desktop-client/src/components/accounts/TransactionList.js index 38b00790e..e8756ed2e 100644 --- a/packages/desktop-client/src/components/accounts/TransactionList.js +++ b/packages/desktop-client/src/components/accounts/TransactionList.js @@ -74,24 +74,16 @@ export default function TransactionList({ renderEmpty, onChange, onRefetch, - onRefetchUpToRow, onCloseAddTransaction, onCreatePayee }) { let transactionsLatest = useRef(); - let scrollTo = useRef(); let history = useHistory(); - useEffect(clearScrollTo); - useLayoutEffect(() => { transactionsLatest.current = transactions; }, [transactions]); - function clearScrollTo() { - scrollTo.current = null; - } - let onAdd = useCallback(async newTransactions => { newTransactions = realizeTempTransactions(newTransactions); @@ -186,7 +178,6 @@ export default function TransactionList({ onAddSplit={onAddSplit} onManagePayees={onManagePayees} onCreatePayee={onCreatePayee} - onScroll={clearScrollTo} style={{ backgroundColor: 'white' }} /> ); -- GitLab