Commit 5588e759 by Torkel Ödegaard

feat(inspector): minor fix for inspector making the error not clear when having…

feat(inspector): minor fix for inspector making the error not clear when having dashboard refresh, fixes #3938
parent 68a5fb66
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import config from 'app/core/config'; import config from 'app/core/config';
import _ from 'lodash'; import _ from 'lodash';
import angular from 'angular';
export class PanelCtrl { export class PanelCtrl {
panel: any; panel: any;
...@@ -177,7 +178,7 @@ export class PanelCtrl { ...@@ -177,7 +178,7 @@ export class PanelCtrl {
var modalScope = this.$scope.$new(); var modalScope = this.$scope.$new();
modalScope.panel = this.panel; modalScope.panel = this.panel;
modalScope.dashboard = this.dashboard; modalScope.dashboard = this.dashboard;
modalScope.inspector = this.inspector; modalScope.inspector = angular.copy(this.inspector);
this.publishAppEvent('show-modal', { this.publishAppEvent('show-modal', {
src: 'public/app/partials/inspector.html', src: 'public/app/partials/inspector.html',
......
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