فهرست منبع

fix(alerting): remove error message when model is valid again

closes #5921
bergquist 9 سال پیش
والد
کامیت
b55b7cde4b
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      public/app/features/alerting/alert_tab_ctrl.ts

+ 2 - 0
public/app/features/alerting/alert_tab_ctrl.ts

@@ -208,6 +208,8 @@ export class AlertTabCtrl {
           this.error = 'Currently the alerting backend only supports Graphite queries';
         } else if (this.templateSrv.variableExists(foundTarget.target)) {
           this.error = 'Template variables are not supported in alert queries';
+        } else {
+          this.error = '';
         }
       });
     }