From 62c512662c717ace7d40a3c1142ea8e93fa65d5e Mon Sep 17 00:00:00 2001 From: Bogdan Matei Date: Thu, 11 Apr 2024 12:31:47 +0300 Subject: [PATCH] Dashboard: Allow `auto` refresh option when saving a dashboard (#85581) Fix saving auto refresh option --- pkg/services/dashboards/service/dashboard_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/dashboards/service/dashboard_service.go b/pkg/services/dashboards/service/dashboard_service.go index e9a72930378..fb86d51e30a 100644 --- a/pkg/services/dashboards/service/dashboard_service.go +++ b/pkg/services/dashboards/service/dashboard_service.go @@ -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 }