浏览代码

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.
stuart nelson 9 年之前
父节点
当前提交
048bcf19f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/panel/metrics_panel_ctrl.ts

+ 1 - 1
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);