Dashboard: Allow auto refresh option when saving a dashboard (#85581)

Fix saving auto refresh option
This commit is contained in:
Bogdan Matei 2024-04-11 12:31:47 +03:00 committed by GitHub
parent 26805906dd
commit 62c512662c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,7 +278,7 @@ func validateDashboardRefreshInterval(minRefreshInterval string, dash *dashboard
}
refresh := dash.Data.Get("refresh").MustString("")
if refresh == "" {
if refresh == "" || refresh == "auto" {
// since no refresh is set it is a valid refresh rate
return nil
}