Provisioning: Fix the save version in dashboard scenes (#104433)
fix save (correct v1beta1)
(cherry picked from commit e6414a6690)
This commit is contained in:
committed by
grafana-delivery-bot[bot]
parent
2fbb2d6f5d
commit
70db967f60
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user