From 048bcf19f662de737dcd4041870248f7a78afbb1 Mon Sep 17 00:00:00 2001 From: stuart nelson Date: Thu, 9 Jun 2016 15:17:17 +0200 Subject: [PATCH] Use panel+ref for unique id Previously, if a user changed the query between requests, the previous query would not be canceled. This handles that edge-case. --- public/app/features/panel/metrics_panel_ctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/panel/metrics_panel_ctrl.ts b/public/app/features/panel/metrics_panel_ctrl.ts index 2a72ef4b24e..4d0fddf58ec 100644 --- a/public/app/features/panel/metrics_panel_ctrl.ts +++ b/public/app/features/panel/metrics_panel_ctrl.ts @@ -183,7 +183,7 @@ class MetricsPanelCtrl extends PanelCtrl { }; metricsQuery.targets.forEach(function(target) { - target.exprID = target.expr + target.refId + metricsQuery.panelId; + target.exprID = target.refId + metricsQuery.panelId; }); return datasource.query(metricsQuery);