summaryrefslogtreecommitdiff
path: root/app/client/modules/samplernn/samplernn.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-02 17:38:24 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-02 17:38:24 +0200
commit01cda57ffd9edc0a3f53501399c134815232e4b5 (patch)
tree5452da202c84c8cf5bc7a550d59a0b08e2319e06 /app/client/modules/samplernn/samplernn.actions.js
parentac05878d9a9df5f24b54d223de4319193f4499fc (diff)
inspect mode for samplernn sanity
Diffstat (limited to 'app/client/modules/samplernn/samplernn.actions.js')
-rw-r--r--app/client/modules/samplernn/samplernn.actions.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/client/modules/samplernn/samplernn.actions.js b/app/client/modules/samplernn/samplernn.actions.js
index becab34..339c347 100644
--- a/app/client/modules/samplernn/samplernn.actions.js
+++ b/app/client/modules/samplernn/samplernn.actions.js
@@ -35,7 +35,7 @@ export const load_directories = () => (dispatch) => {
const fileLookup = unprocessedFiles.reduce((fileLookup, file) => {
file.checkpoints = []
if (! file.name) {
- file.name = (file.opt || {}).token || 'unloaded'
+ file.name = (file.opt || {}).token || file.url
// fileLookup[(file.name || 'unsorted').split('.')[0]] = file
} else {
fileLookup[(file.name).split('.')[0]] = file
@@ -100,11 +100,10 @@ export const load_directories = () => (dispatch) => {
type: types.samplernn.init,
data: {
folderLookup,
- // folders, files,
- // checkpoints,
- // builtDatasets,
- // flatDatasets,
- // report
+ folders, files,
+ checkpoints,
+ builtDatasets,
+ report
},
})
if (folders.length) {