rename filesList to filesTree

pull/1/head
serapath 7 years ago
parent 098b6f0d11
commit aa863b9de7
  1. 4
      src/app/files/fileManager.js

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

Loading…
Cancel
Save