Explorar o código

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

Alexey Velikiy %!s(int64=7) %!d(string=hai) anos
pai
achega
00f67ea7c7
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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') {