diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-02 16:30:54 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-02 16:30:54 +0200 |
| commit | 1b4a9fab63ce3339c67925f3a7136707ed25d227 (patch) | |
| tree | af0e1037fcf11e24653322aaed6b01ebdc492fb9 /public/bundle.js | |
| parent | 65245a8251c728feb39a94455d850fc27cc5abfe (diff) | |
whmmm
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/public/bundle.js b/public/bundle.js index 02003a0..41b293c 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -4472,7 +4472,9 @@ var load_directories = exports.load_directories = function load_directories() { var file = fileLookup[name] || fileLookup.unsorted; file.log = lines.map(function (s) { return s.split('\t').map(function (s) { - return s.split(': ').reduce(function (a, b) { + return s.split(': ').filter(function (b) { + return b.length && b[1]; + }).reduce(function (a, b) { return (a[b[0]] = b[1]) && a; }, {}); }); @@ -4490,10 +4492,12 @@ var load_directories = exports.load_directories = function load_directories() { // report } }); - dispatch({ - type: _types2.default.samplernn.set_folder, - folder: folders[0].name - }); + if (folders.length) { + dispatch({ + type: _types2.default.samplernn.set_folder, + folder: folders[0].name + }); + } }).catch(function (e) { console.error(e); }); |
