Update dashboard.ts

This commit is contained in:
Shekar Siri 2022-04-29 16:10:03 +02:00 committed by GitHub
parent 4f1a476c65
commit 27641279b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,7 @@ export default class Dashboard implements IDashboard {
runInAction(() => {
this.dashboardId = json.dashboardId
this.name = json.name
this.description = json.description
this.isPublic = json.isPublic
this.isPinned = json.isPinned
this.widgets = json.widgets ? json.widgets.map(w => new Widget().fromJson(w)).sort((a, b) => a.position - b.position) : []