Kaynağa Gözat

rm panel.type constrain from threshold_mapper.ts (#11448)

Alexey Velikiy 7 yıl önce
ebeveyn
işleme
00f67ea7c7

+ 0 - 4
public/app/features/alerting/threshold_mapper.ts

@@ -1,9 +1,5 @@
 export class ThresholdMapper {
   static alertToGraphThresholds(panel) {
-    if (panel.type !== 'graph') {
-      return false;
-    }
-
     for (var i = 0; i < panel.alert.conditions.length; i++) {
       let condition = panel.alert.conditions[i];
       if (condition.type !== 'query') {