Forráskód Böngészése

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

Alexey Velikiy 7 éve
szülő
commit
00f67ea7c7
1 módosított fájl, 0 hozzáadás és 4 törlés
  1. 0 4
      public/app/features/alerting/threshold_mapper.ts

+ 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') {