mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix alert frequency check (#32974)
This commit is contained in:
committed by
GitHub
parent
3b6117a268
commit
52243d859b
@@ -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