Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1061 from marmelab/delete_ie11
Browse files Browse the repository at this point in the history
[RFR] Fix delete reducer on IE11
  • Loading branch information
djhi authored Sep 20, 2017
2 parents 96bb49e + 8b943fb commit 4f59af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reducer/admin/resource/list/ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default resource => (
case CRUD_GET_LIST_SUCCESS:
return payload.data.map(record => record.id);
case CRUD_DELETE_SUCCESS: {
const index = previousState.findIndex(
el => el == requestPayload.id
); // eslint-disable-line eqeqeq
const index = previousState
.map(el => el == requestPayload.id) // eslint-disable-line eqeqeq
.indexOf(true);
if (index === -1) {
return previousState;
}
Expand Down

0 comments on commit 4f59af6

Please sign in to comment.