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 326b50c commit db79c13Copy full SHA for db79c13
services/static-webserver/client/source/class/osparc/file/FilesTree.js
@@ -84,21 +84,14 @@ qx.Class.define("osparc.file.FilesTree", {
84
85
statics: {
86
isDir: function(item) {
87
- let isDir = false;
88
- if (item["get"+qx.lang.String.firstUp("path")]) {
89
- if (item.getPath() !== null) {
90
- isDir = true;
91
- }
92
93
- return isDir;
+ return !this.isFile(item);
94
},
95
96
isFile: function(item) {
97
- let isFile = false;
98
if (item["set"+qx.lang.String.firstUp("fileId")]) {
99
- isFile = true;
+ return true;
100
}
101
- return isFile;
+ return false;
102
103
104
addLoadingChild: function(parent) {
0 commit comments