Commit 014b70de by Torkel Ödegaard

fix(graph): fixed showing rendering error in inspector, fixes #5995

parent 7aab4a4a
......@@ -242,7 +242,7 @@ export class PanelCtrl {
var modalScope = this.$scope.$new();
modalScope.panel = this.panel;
modalScope.dashboard = this.dashboard;
modalScope.inspector = angular.copy(this.inspector);
modalScope.inspector = $.extend(true, {}, this.inspector);
this.publishAppEvent('show-modal', {
src: 'public/app/partials/inspector.html',
......
......@@ -68,9 +68,9 @@
</pre>
<label>Stack trace:</label>
<pre>
{{stack_trace}}
</pre>
<pre>
{{stack_trace}}
</pre>
</div>
......
......@@ -265,7 +265,7 @@ function (angular, $, moment, _, kbn, GraphTooltip, thresholdManExports) {
console.log('flotcharts error', e);
ctrl.error = e.message || "Render Error";
ctrl.renderError = true;
ctrl.inspector = {error: ctrl.error};
ctrl.inspector = {error: e};
}
if (incrementRenderCounter) {
......
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