rename filesList to filesTree

pull/3094/head
serapath 7 years ago
parent 517baf36a3
commit dbafc50195
  1. 4
      src/app/files/fileManager.js

@ -122,9 +122,9 @@ class FileManager {
switchFile (file) { switchFile (file) {
var self = this var self = this
if (!file) { if (!file) {
self.opt.filesProviders['browser'].resolveDirectory('', (error, filesList) => { self.opt.filesProviders['browser'].resolveDirectory('', (error, filesTree) => {
if (error) console.error(error) if (error) console.error(error)
var fileList = Object.keys(flatten(filesList)) var fileList = Object.keys(flatten(filesTree))
if (fileList.length) { if (fileList.length) {
file = fileList[0] file = fileList[0]
if (file) _switchFile(file) if (file) _switchFile(file)

Loading…
Cancel
Save