Skip to content

Commit

Permalink
Reset dashboardConfig on panel change
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Jul 26, 2023
1 parent d12be1a commit 444344c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,7 @@ function locationChanged() {
let tab = window.location.pathname.split("/").slice(-1)[0];
if (activePanelUrl != pl.panel.url_path) {
if (config.debug) console.debug(`Active panel switched from '${activePanelUrl}' to '${pl.panel.url_path}'`);
dashboardConfig = {};
activePanelUrl = pl.panel.url_path;
activePanelTab = tab;
changed = true;
Expand Down

0 comments on commit 444344c

Please sign in to comment.