Provisioning: Fix the save version in dashboard scenes (#104433)

fix save (correct v1beta1)
This commit is contained in:
Ryan McKinley
2025-04-24 10:29:49 +03:00
committed by GitHub
parent 82c291675b
commit e6414a6690
@@ -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',