Skip to content

Commit 11c4e11

Browse files
committed
fix: #4236 again
1 parent 0e78c84 commit 11c4e11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/projects/reducers/projectSearch.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,13 @@ export default function(state = initialState, action) {
159159
})
160160

161161
case UPDATE_PROJECT_SUCCESS: {
162+
// only update status
162163
const { projects } = state
163164
const projectIndex = _.findIndex(projects, {id: action.payload.id})
165+
const newProject = {...projects[projectIndex], status: action.payload.status}
166+
164167
return update(state, {
165-
projects: { $splice: [[projectIndex, 1, action.payload]] }
168+
projects: { $splice: [[projectIndex, 1, newProject]] }
166169
})
167170
}
168171
case DELETE_PROJECT_SUCCESS: {

0 commit comments

Comments
 (0)