diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 19:05:45 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 19:05:45 +0200 |
| commit | 72485efe1d7e17c883beba80c7a6b65ff1dca841 (patch) | |
| tree | 1be6cdf358c43db0e27a63a719a60686287a6575 /app/client/modules/samplernn/samplernn.reducer.js | |
| parent | 408086ca5fced2552461f2d00f6d4a95be7b2636 (diff) | |
deploy bundle
Diffstat (limited to 'app/client/modules/samplernn/samplernn.reducer.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.reducer.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/client/modules/samplernn/samplernn.reducer.js b/app/client/modules/samplernn/samplernn.reducer.js index ce3a549..4758f61 100644 --- a/app/client/modules/samplernn/samplernn.reducer.js +++ b/app/client/modules/samplernn/samplernn.reducer.js @@ -10,6 +10,7 @@ const samplernnInitialState = { folder_id: 0, data: null, lossReport: null, + results: null, } const samplernnReducer = (state = samplernnInitialState, action) => { @@ -23,7 +24,12 @@ const samplernnReducer = (state = samplernnInitialState, action) => { ...state, lossReport: action.lossReport, } - + case types.samplernn.load_graph: + return { + ...state, + lossReport: action.lossReport, + results: action.results, + } default: return state } |
