don't display explorer at all if no file

pull/1/head
yann300 7 years ago
parent fa7f81514d
commit a3b4747b06
  1. 3
      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

Loading…
Cancel
Save