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

fix save (correct v1beta1)
pull/104437/head^2
Ryan McKinley 3 months ago committed by GitHub
parent 82c291675b
commit e6414a6690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/dashboard-scene/scene/DashboardScene.tsx

@ -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',

Loading…
Cancel
Save