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:
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue