Compare commits

...

1 Commits

Author SHA1 Message Date
Ryan McKinley 70db967f60 Provisioning: Fix the save version in dashboard scenes (#104433)
fix save (correct v1beta1)

(cherry picked from commit e6414a6690)
2025-04-24 07:32:13 +00:00
@@ -775,7 +775,7 @@ export class DashboardScene extends SceneObjectBase<DashboardSceneState> impleme
const { meta } = this.state;
const spec = this.getSaveAsModel(options);
const apiVersion = this.serializer instanceof V2DashboardSerializer ? 'v2alpha1' : 'v1alpha1'; // get from the dashboard?
const apiVersion = this.serializer instanceof V2DashboardSerializer ? 'v2alpha1' : 'v1beta1'; // get from the dashboard?
return {
apiVersion: `dashboard.grafana.app/${apiVersion}`,
kind: 'Dashboard',