From d77dbc2b0e8c95c6037ebbb06446d7ae87ec6d22 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Dec 2017 16:23:44 +0100 Subject: [PATCH] don't display explorer at all if no file --- src/app/files/file-explorer.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index fedeee587c..410fe4da0a 100755 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -410,9 +410,6 @@ function expandPathTo (li) { fileExplorer.prototype.init = function () { var files = this.files.listAsTree() - if (!Object.keys(files).length) { - files[this.files.type] = {} // default - } var element = this.treeView.render(files) element.className = css.fileexplorer element.events = this.events