From 1b22b3bd492f337156f214840bda9eca98373763 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Mon, 8 Jan 2024 12:20:36 -0500 Subject: [PATCH] Clear transactions when navigating to /transactions. --- .../andrewlalis/perfin/control/TransactionsViewController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/andrewlalis/perfin/control/TransactionsViewController.java b/src/main/java/com/andrewlalis/perfin/control/TransactionsViewController.java index 19a0d58..520c0b9 100644 --- a/src/main/java/com/andrewlalis/perfin/control/TransactionsViewController.java +++ b/src/main/java/com/andrewlalis/perfin/control/TransactionsViewController.java @@ -118,6 +118,7 @@ public class TransactionsViewController implements RouteSelectionListener { @Override public void onRouteSelected(Object context) { paginationControls.sorts.setAll(DEFAULT_SORTS); + transactionsVBox.getChildren().clear(); // Clear the transactions before reload initially. // Refresh account filter options. Thread.ofVirtual().start(() -> {