fix new project action

This commit is contained in:
catarak 2016-08-24 15:36:37 -04:00
parent 69b73d016a
commit acd5aa8c83

View file

@ -90,7 +90,7 @@ const files = (state, action) => {
case ActionTypes.SET_PROJECT: case ActionTypes.SET_PROJECT:
return [...action.files]; return [...action.files];
case ActionTypes.RESET_PROJECT: case ActionTypes.RESET_PROJECT:
return initialState; return initialState();
case ActionTypes.CREATE_FILE: // eslint-disable-line case ActionTypes.CREATE_FILE: // eslint-disable-line
const newState = state.map((file) => { const newState = state.map((file) => {
if (file.id === action.parentId) { if (file.id === action.parentId) {