Refresh view when switching views.
This commit is contained in:
@@ -355,13 +355,9 @@ class TimeAnalyticsController {
|
|||||||
|
|
||||||
this.state.activeView = viewType;
|
this.state.activeView = viewType;
|
||||||
|
|
||||||
// Load data for new view if needed
|
// Always load new data since different views need different data structures
|
||||||
if (this.state.data) {
|
|
||||||
this.refreshCurrentView();
|
|
||||||
} else {
|
|
||||||
this.loadData();
|
this.loadData();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
updateTableView() {
|
updateTableView() {
|
||||||
const tbody = document.getElementById('entries-tbody');
|
const tbody = document.getElementById('entries-tbody');
|
||||||
|
|||||||
Reference in New Issue
Block a user