diff --git a/client/src/js/reducers/models.js b/client/src/js/reducers/models.js index e34012c9e..d8b86188a 100644 --- a/client/src/js/reducers/models.js +++ b/client/src/js/reducers/models.js @@ -412,7 +412,7 @@ export default function modelsReducer(state = DEFAULT_MODELS, action) { case Action.ADD_PROJECT: case Action.UPDATE_PROJECT: { - const projectId = action.project.id; + const projectId = action.project !== undefined? action.project.id: action.updatedProject.id; const project = { notes: [], ...state.project[projectId],