We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3375126 commit 8ed0218Copy full SHA for 8ed0218
services/static-webserver/client/source/class/osparc/file/FilesTree.js
@@ -457,7 +457,7 @@ qx.Class.define("osparc.file.FilesTree", {
457
const root = this.getModel();
458
const list = [];
459
this.__getItemsInTree(root, list);
460
- return list.find(element => element.getChildren && element.getChildren().contains(childItem));
+ return list.find(element => element.getChildren && childItem.getPath && element.getChildren().toArray().find(child => child.getPath() === childItem.getPath()));
461
},
462
463
findItemId: function(itemId) {
0 commit comments