From 2f0fd83837f9d728b384b033e0b9b2b8570df2de Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 16:09:33 +0200 Subject: agh --- app/client/modules/morph/morph.reducer.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/client/modules/morph/morph.reducer.js') 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 } -- cgit v1.2.3-70-g09d2