Skip to content

Commit db79c13

Browse files
committed
isFile
1 parent 326b50c commit db79c13

File tree

1 file changed

+3
-10
lines changed
  • services/static-webserver/client/source/class/osparc/file

1 file changed

+3
-10
lines changed

services/static-webserver/client/source/class/osparc/file/FilesTree.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,14 @@ qx.Class.define("osparc.file.FilesTree", {
8484

8585
statics: {
8686
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;
87+
return !this.isFile(item);
9488
},
9589

9690
isFile: function(item) {
97-
let isFile = false;
9891
if (item["set"+qx.lang.String.firstUp("fileId")]) {
99-
isFile = true;
92+
return true;
10093
}
101-
return isFile;
94+
return false;
10295
},
10396

10497
addLoadingChild: function(parent) {

0 commit comments

Comments
 (0)