Commit 6ab52688 by Marcus Efraimsson

dashboards: ensure that uid is returned from getSaveModelClone

Without this the uid will not be sent to the backend when saving a
dashboard.
#7883
parent fd59241e
...@@ -12,6 +12,7 @@ import { DashboardMigrator } from './dashboard_migration'; ...@@ -12,6 +12,7 @@ import { DashboardMigrator } from './dashboard_migration';
export class DashboardModel { export class DashboardModel {
id: any; id: any;
uid: any;
title: any; title: any;
autoUpdate: any; autoUpdate: any;
description: any; description: any;
...@@ -56,6 +57,7 @@ export class DashboardModel { ...@@ -56,6 +57,7 @@ export class DashboardModel {
this.events = new Emitter(); this.events = new Emitter();
this.id = data.id || null; this.id = data.id || null;
this.uid = data.uid || null;
this.revision = data.revision; this.revision = data.revision;
this.title = data.title || 'No Title'; this.title = data.title || 'No Title';
this.autoUpdate = data.autoUpdate; this.autoUpdate = data.autoUpdate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment