mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(dasbboard): fix to issues when setting fullscreen/edit state for panel that have yet to get a scope
This commit is contained in:
@@ -89,6 +89,11 @@ function (angular, _, $) {
|
|||||||
this.leaveFullscreen(false);
|
this.leaveFullscreen(false);
|
||||||
}
|
}
|
||||||
var panelScope = this.getPanelScope(this.state.panelId);
|
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);
|
this.enterFullscreen(panelScope);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user