Skip to content

Commit

Permalink
Merge pull request #2774 from g3offrey/master
Browse files Browse the repository at this point in the history
fix: delete-many keep selected items
  • Loading branch information
Gildas Garcia authored Jan 16, 2019
2 parents 8453971 + ee5726c commit 796848f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ const selectedIdsReducer: Reducer<State> = (
];
}
if (action.meta.fetch === DELETE_MANY) {
const index = previousState.indexOf(action.payload.ids);
if (index === -1) {
return previousState;
}
return previousState.filter(id => !action.payload.ids.includes(id));
}
}
Expand Down

0 comments on commit 796848f

Please sign in to comment.