summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-08-12 02:48:32 +0200
committerJules Laplace <julescarbon@gmail.com>2019-08-12 02:48:32 +0200
commite4b941f98801251c3000c3794af0dd12d5595ef6 (patch)
tree2c4ba58d17e8ecb1e233ecd983d92a137c9b049f /app/client
parentf3acc04e3a7c1248531df8397277c41a4964feeb (diff)
deploy bundle
Diffstat (limited to 'app/client')
-rw-r--r--app/client/modules/samplernn/samplernn.actions.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/client/modules/samplernn/samplernn.actions.js b/app/client/modules/samplernn/samplernn.actions.js
index e4de1dd..d3f35fd 100644
--- a/app/client/modules/samplernn/samplernn.actions.js
+++ b/app/client/modules/samplernn/samplernn.actions.js
@@ -65,6 +65,7 @@ export const load_directories = (id) => (dispatch) => {
.filter(b => b.length && b[1])
.reduce((a,b) => (a[b[0]] = b[1]) && a, {})
checkpoint.name = checkpoint.name || checkpoint.dataset || checkpoint.exp
+ if (!checkpoint.name) return
checkpoint.date = s.date
checkpoint.dir = s
checkpoint.persisted = false
@@ -76,7 +77,7 @@ export const load_directories = (id) => (dispatch) => {
}
dataset.checkpoints.push(checkpoint)
return checkpoint
- })
+ }).filter(c => !!c)
output.map(file => {
file.uuid = uuidv1()