Commit e04678f3 by Torkel Ödegaard

feat(dasbboard): fix to issues when setting fullscreen/edit state for panel that…

feat(dasbboard): fix to issues when setting fullscreen/edit state for panel that have yet to get a scope
parent bbdf75bd
......@@ -89,6 +89,11 @@ function (angular, _, $) {
this.leaveFullscreen(false);
}
var panelScope = this.getPanelScope(this.state.panelId);
// panel could be about to be created/added and scope does
// not exist yet
if (!panelScope) {
return;
}
this.enterFullscreen(panelScope);
return;
}
......
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