diff --git a/public/app/features/alerting/AlertTabCtrl.ts b/public/app/features/alerting/AlertTabCtrl.ts index 0cd209d1473..4500758209e 100644 --- a/public/app/features/alerting/AlertTabCtrl.ts +++ b/public/app/features/alerting/AlertTabCtrl.ts @@ -266,7 +266,11 @@ export class AlertTabCtrl { checkFrequency() { this.frequencyWarning = ''; - if (!(this.alert.frequency || '').match(/^\d+([dhms])$/)) { + if (!this.alert.frequency) { + return; + } + + if (!this.alert.frequency.match(/^\d+([dhms])$/)) { this.frequencyWarning = 'Invalid frequency, has to be numeric followed by one of the following units: "d, h, m, s"'; return;