Skip to content

Commit 3031392

Browse files
committed
checks correct
1 parent 623a396 commit 3031392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/DragDropHelpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ qx.Class.define("osparc.dashboard.DragDropHelpers", {
6060
// - Write on dest Workspace
6161
if (workspaceDestId === -1) { // (0)
6262
compatible = false;
63-
} else if (studyDataOrigin["workspaceId"] === null && workspaceDest === null) { // (1)
63+
} else if (studyDataOrigin["workspaceId"] === null && workspaceDestId === null) { // (1)
6464
compatible = true;
6565
} else if (studyDataOrigin["workspaceId"] === null && workspaceDest) { // (2)
6666
compatible = osparc.data.model.Study.canIDelete(studyDataOrigin["accessRights"]) && workspaceDest.getMyAccessRights()["write"];
67-
} else if (workspaceOrigin && workspaceDest === null) { // (3)
67+
} else if (workspaceOrigin && workspaceDestId === null) { // (3)
6868
compatible = workspaceOrigin.getMyAccessRights()["delete"];
6969
} else if (workspaceOrigin && workspaceDest) { // (4)
7070
compatible = workspaceOrigin.getMyAccessRights()["delete"] && workspaceDest.getMyAccessRights()["write"];

0 commit comments

Comments
 (0)