summaryrefslogtreecommitdiff
path: root/app/client/modules/samplernn/samplernn.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/modules/samplernn/samplernn.reducer.js')
-rw-r--r--app/client/modules/samplernn/samplernn.reducer.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/client/modules/samplernn/samplernn.reducer.js b/app/client/modules/samplernn/samplernn.reducer.js
index 5424422..5a49aba 100644
--- a/app/client/modules/samplernn/samplernn.reducer.js
+++ b/app/client/modules/samplernn/samplernn.reducer.js
@@ -3,7 +3,8 @@ import types from '../../types'
const samplernnInitialState = {
loading: false,
error: null,
- datasets: [],
+ folder: {},
+ folders: [],
results: [],
}
@@ -26,6 +27,19 @@ const samplernnReducer = (state = samplernnInitialState, action) => {
}
case types.folder.index:
console.log(action)
+ return {
+ folders: action.data,
+ folder: action.data[0],
+ }
+ return
+ case types.folder.update:
+ console.log(action)
+ return
+ case types.file.index:
+ console.log(action)
+ return
+ case types.file.create:
+ console.log(action)
return
default:
return state