summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-02 16:30:54 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-02 16:30:54 +0200
commit1b4a9fab63ce3339c67925f3a7136707ed25d227 (patch)
treeaf0e1037fcf11e24653322aaed6b01ebdc492fb9 /public/bundle.js
parent65245a8251c728feb39a94455d850fc27cc5abfe (diff)
whmmm
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js14
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);
});