Clear transactions when navigating to /transactions.

This commit is contained in:
Andrew Lalis 2024-01-08 12:20:36 -05:00
parent 4370d8221f
commit 1b22b3bd49
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ public class TransactionsViewController implements RouteSelectionListener {
@Override @Override
public void onRouteSelected(Object context) { public void onRouteSelected(Object context) {
paginationControls.sorts.setAll(DEFAULT_SORTS); paginationControls.sorts.setAll(DEFAULT_SORTS);
transactionsVBox.getChildren().clear(); // Clear the transactions before reload initially.
// Refresh account filter options. // Refresh account filter options.
Thread.ofVirtual().start(() -> { Thread.ofVirtual().start(() -> {