Skip to content

Commit a37efa3

Browse files
committed
init and null values
1 parent 19bf573 commit a37efa3

File tree

1 file changed

+5
-5
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+5
-5
lines changed

services/static-webserver/client/source/class/osparc/data/model/Study.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ qx.Class.define("osparc.data.model.Study", {
4444

4545
this.set({
4646
uuid: studyData.uuid || this.getUuid(),
47-
workspaceId: studyData.workspaceId || null,
48-
folderId: studyData.folderId || null,
47+
workspaceId: studyData.workspaceId || this.getWorkspaceId(),
48+
folderId: studyData.folderId || this.getFolderId(),
4949
name: studyData.name || this.getName(),
5050
description: studyData.description || this.getDescription(),
5151
thumbnail: studyData.thumbnail || this.getThumbnail(),
@@ -60,9 +60,9 @@ qx.Class.define("osparc.data.model.Study", {
6060
permalink: studyData.permalink || this.getPermalink(),
6161
dev: studyData.dev || this.getDev(),
6262
trashedAt: studyData.trashedAt ? new Date(studyData.trashedAt) : this.getTrashedAt(),
63-
trashedBy: studyData.trashedBy || null,
64-
type: studyData.type,
65-
templateType: studyData.templateType,
63+
trashedBy: studyData.trashedBy || this.getTrashedBy(),
64+
type: studyData.type || this.getType(),
65+
templateType: studyData.templateType || this.getTemplateType(),
6666
});
6767

6868
const wbData = studyData.workbench || this.getWorkbench();

0 commit comments

Comments
 (0)