From 49cc0c94d2c3b56af37859f8f318407d276c4a2a Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Fri, 4 Jul 2025 17:25:19 +0200 Subject: [PATCH] Refresh view when switching views. --- templates/analytics.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/analytics.html b/templates/analytics.html index e84f78c..7370b69 100644 --- a/templates/analytics.html +++ b/templates/analytics.html @@ -355,12 +355,8 @@ class TimeAnalyticsController { this.state.activeView = viewType; - // Load data for new view if needed - if (this.state.data) { - this.refreshCurrentView(); - } else { - this.loadData(); - } + // Always load new data since different views need different data structures + this.loadData(); } updateTableView() {