From aa863b9de73ee656b968b99db69fd59948fa705f Mon Sep 17 00:00:00 2001 From: serapath Date: Tue, 9 Jan 2018 00:52:48 +0800 Subject: [PATCH] rename filesList to filesTree --- src/app/files/fileManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index fb66a0d243..29fb53f9ce 100644 --- a/src/app/files/fileManager.js +++ b/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)