Skip to content

Commit 5de4500

Browse files
committed
minor fix
1 parent 8148f72 commit 5de4500

File tree

1 file changed

+2
-2
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
16451645
__doMoveStudy: function(studyData, destWorkspaceId, destFolderId) {
16461646
this.__moveStudyToWorkspace(studyData, destWorkspaceId) // first move to workspace
16471647
.then(() => this.__moveStudyToFolder(studyData, destFolderId)) // then move to folder
1648+
.then(() => this.__removeFromStudyList(studyData["uuid"]))
16481649
.catch(err => {
16491650
console.error(err);
16501651
osparc.FlashMessenger.logAs(err.message, "ERROR");
@@ -1713,8 +1714,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
17131714
}
17141715
};
17151716
return osparc.data.Resources.fetch("studies", "moveToFolder", params)
1716-
.then(() => studyData["folderId"] = destFolderId)
1717-
.then(() => this.__removeFromStudyList(studyData["uuid"]));
1717+
.then(() => studyData["folderId"] = destFolderId);
17181718
},
17191719

17201720
_studyToFolderRequested: function(data) {

0 commit comments

Comments
 (0)