diff --git a/packages/ra-core/src/reducer/admin/resource/list/selectedIds.ts b/packages/ra-core/src/reducer/admin/resource/list/selectedIds.ts index 43207486501..d37dfcbd1d8 100644 --- a/packages/ra-core/src/reducer/admin/resource/list/selectedIds.ts +++ b/packages/ra-core/src/reducer/admin/resource/list/selectedIds.ts @@ -56,10 +56,6 @@ const selectedIdsReducer: Reducer = ( ]; } 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)); } }