From 95e4f50db753954f33868ff4e98e6ad29737c533 Mon Sep 17 00:00:00 2001 From: dreautall <109872040+dreautall@users.noreply.github.com> Date: Sun, 16 Jun 2024 09:10:42 +0000 Subject: [PATCH] TX List: add additional refreshes when updating transactions. fixes #379 This behavior needs to be optimized once #401 is done! --- lib/pages/home/transactions.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/home/transactions.dart b/lib/pages/home/transactions.dart index 3d6c49a8..754ab647 100644 --- a/lib/pages/home/transactions.dart +++ b/lib/pages/home/transactions.dart @@ -486,6 +486,9 @@ class _HomeTransactionsState extends State if (ok ?? false) { _rowsWithDate = []; _lastDate = null; + if (context.mounted) { + context.read().transStock!.clear(); + } _pagingController.refresh(); } }, @@ -650,6 +653,9 @@ class _HomeTransactionsState extends State if (refresh ?? false == true) { _rowsWithDate = []; _lastDate = null; + if (context.mounted) { + context.read().transStock!.clear(); + } _pagingController.refresh(); } },