From 5588e7597c1af04917606ecada1036ef260ba8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 4 Feb 2016 15:31:54 +0100 Subject: [PATCH] feat(inspector): minor fix for inspector making the error not clear when having dashboard refresh, fixes #3938 --- public/app/features/panel/panel_ctrl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 9f14a7c24a3..96b1a6d9d4d 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -2,6 +2,7 @@ import config from 'app/core/config'; import _ from 'lodash'; +import angular from 'angular'; export class PanelCtrl { panel: any; @@ -177,7 +178,7 @@ export class PanelCtrl { var modalScope = this.$scope.$new(); modalScope.panel = this.panel; modalScope.dashboard = this.dashboard; - modalScope.inspector = this.inspector; + modalScope.inspector = angular.copy(this.inspector); this.publishAppEvent('show-modal', { src: 'public/app/partials/inspector.html',