diff --git a/pkg/grafana/dashboard-handler.go b/pkg/grafana/dashboard-handler.go index 2775664a..31c2af31 100644 --- a/pkg/grafana/dashboard-handler.go +++ b/pkg/grafana/dashboard-handler.go @@ -386,7 +386,7 @@ func (h *DashboardHandler) DashboardJSONPostHandler(s grizzly.Server) http.Handl return } uid, ok := resp.Dashboard["uid"].(string) - if !ok { + if !ok || uid == "" { grizzly.SendError(w, "Dashboard has no UID", fmt.Errorf("dashboard has no UID"), 400) return }