fix new project action
This commit is contained in:
parent
69b73d016a
commit
acd5aa8c83
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ const files = (state, action) => {
|
|||
case ActionTypes.SET_PROJECT:
|
||||
return [...action.files];
|
||||
case ActionTypes.RESET_PROJECT:
|
||||
return initialState;
|
||||
return initialState();
|
||||
case ActionTypes.CREATE_FILE: // eslint-disable-line
|
||||
const newState = state.map((file) => {
|
||||
if (file.id === action.parentId) {
|
||||
|
|
Loading…
Reference in a new issue