Skip to content

Commit 00fe3e6

Browse files
committed
follow Long Running Task
1 parent 7471c05 commit 00fe3e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ qx.Class.define("osparc.dashboard.DataBrowser", {
9494
// After deleting a file, try to keep the user in the same folder.
9595
// If the folder doesn't longer exist, open the closest available parent
9696

97-
const pathParts = fileMetadata["fileUuid"].split("/");
97+
const pathParts = ("getPath" in fileMetadata ? fileMetadata.getPath() : fileMetadata["fileUuid"]).split("/");
9898

9999
const treeFolderView = this.getChildControl("tree-folder-view");
100100
const foldersTree = treeFolderView.getChildControl("folder-tree");

services/static-webserver/client/source/class/osparc/widget/StudyDataManager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ qx.Class.define("osparc.widget.StudyDataManager", {
120120
// After deleting a file, try to keep the user in the same folder.
121121
// If the folder doesn't longer exist, open the closest available parent
122122

123-
const path = fileMetadata["fileUuid"].split("/");
123+
const pathParts = ("getPath" in fileMetadata ? fileMetadata.getPath() : fileMetadata["fileUuid"]).split("/");
124124

125125
const treeFolderView = this.getChildControl("tree-folder-view");
126126
const foldersTree = treeFolderView.getChildControl("folder-tree");
@@ -129,11 +129,11 @@ qx.Class.define("osparc.widget.StudyDataManager", {
129129
const openSameFolder = () => {
130130
if (!this.getStudyId()) {
131131
// drop first, which is the study id
132-
path.shift();
132+
pathParts.shift();
133133
}
134134
// drop last, which is the file
135-
path.pop();
136-
treeFolderView.openPath(path);
135+
pathParts.pop();
136+
treeFolderView.openPath(pathParts);
137137
};
138138

139139
if (this.getNodeId()) {

0 commit comments

Comments
 (0)