Commit 96104e43 by Torkel Ödegaard

fix: dont setViewMode when nothing has changed

parent 4822c025
...@@ -126,8 +126,7 @@ export class DashboardViewState { ...@@ -126,8 +126,7 @@ export class DashboardViewState {
if (!panel.fullscreen) { if (!panel.fullscreen) {
this.enterFullscreen(panel); this.enterFullscreen(panel);
} else { } else if (this.dashboard.meta.isEditing !== this.state.edit) {
// already in fullscreen view just update the view mode
this.dashboard.setViewMode(panel, this.state.fullscreen, this.state.edit); this.dashboard.setViewMode(panel, this.state.fullscreen, this.state.edit);
} }
} else if (this.fullscreenPanel) { } else if (this.fullscreenPanel) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment