K8s: Fix dashboard creation timestamp (#102578)

This commit is contained in:
Stephanie Hingtgen
2025-03-21 07:47:09 +02:00
committed by GitHub
parent 08335a0068
commit da95ee22cc
2 changed files with 5 additions and 2 deletions
@@ -404,6 +404,7 @@ func (a *dashboardSqlAccess) buildSaveDashboardCommand(ctx context.Context, orgI
})
if old != nil {
dash.Spec.Set("id", old.ID)
dash.Spec.Set("version", float64(old.Version))
} else {
dash.Spec.Remove("id") // existing of "id" makes it an update
created = true