mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
fix(graph): fixed showing rendering error in inspector, fixes #5995
This commit is contained in:
parent
7aab4a4a59
commit
014b70ded9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user