diff options
Diffstat (limited to 'app/client/modules/samplernn/samplernn.reducer.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.reducer.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/client/modules/samplernn/samplernn.reducer.js b/app/client/modules/samplernn/samplernn.reducer.js index b294c2f..11a9d9e 100644 --- a/app/client/modules/samplernn/samplernn.reducer.js +++ b/app/client/modules/samplernn/samplernn.reducer.js @@ -2,6 +2,7 @@ import types from '../../types' const samplernnInitialState = { loading: true, + progress: { i: 0, n: 0 }, error: null, folders: [], folder: {}, @@ -103,6 +104,12 @@ const samplernnReducer = (state = samplernnInitialState, action) => { lossReport: action.lossReport, } + case types.app.load_progress: + return { + ...state, + progress: action.progress + } + default: return state } |
