diff --git a/src/reducers/project-state.js b/src/reducers/project-state.js index 734a05b138371ff5aa1bdd075afaeabbb70f0e56..f32800711529462838a564d8aa1146cdb3da6c04 100644 --- a/src/reducers/project-state.js +++ b/src/reducers/project-state.js @@ -172,6 +172,10 @@ const reducer = function (state, action) { } return state; case SET_PROJECT_ID: + // if the projectId hasn't actually changed do nothing + if (state.projectId === action.projectId) { + return state; + } // if setting the default project id, specifically fetch that project if (action.projectId === defaultProjectId) { return Object.assign({}, state, {