mirror of
https://github.com/grafana/grafana.git
synced 2026-08-08 20:28:14 -05:00
Fix alert frequency check (#32974)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user