dashboards: ensure that uid is returned from getSaveModelClone

Without this the uid will not be sent to the backend when saving a
dashboard.
#7883
This commit is contained in:
Marcus Efraimsson 2018-01-31 00:06:31 +01:00
parent fd59241e35
commit 6ab526881a

View File

@ -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 {
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;