diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 16:09:33 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 16:09:33 +0200 |
| commit | 2f0fd83837f9d728b384b033e0b9b2b8570df2de (patch) | |
| tree | 32400963c262138481259d9d1205245f30429e68 /app/client/modules/morph/morph.reducer.js | |
| parent | 577e2753bd7979badcaf23274bbb7327fa892512 (diff) | |
agh
Diffstat (limited to 'app/client/modules/morph/morph.reducer.js')
| -rw-r--r-- | app/client/modules/morph/morph.reducer.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/client/modules/morph/morph.reducer.js b/app/client/modules/morph/morph.reducer.js index 92cbc9e..99e2001 100644 --- a/app/client/modules/morph/morph.reducer.js +++ b/app/client/modules/morph/morph.reducer.js @@ -27,6 +27,16 @@ const morphReducer = (state = morphInitialState, action) => { ...state, app: action.app, } + case types.file.create: + console.log(action) + if (action.data.module !== 'morph') return state + return { + ...state, + app: state.app && { + ...state.app, + files: [action.data].concat(state.app.files) + } + } default: return state } |
