Skip to content

Commit

Permalink
Merge pull request #4575 from marmelab/fix-string-id-delete-in-list
Browse files Browse the repository at this point in the history
[RFR] Fix useGetList after delete when using string identifiers
  • Loading branch information
djhi authored Mar 24, 2020
2 parents 026b989 + 37681c2 commit faba3df
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 221 deletions.
1 change: 1 addition & 0 deletions packages/ra-core/src/dataProvider/useGetList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const useGetList = <RecordType = Record>(
return ids
.map(id => allResourceData[id])
.reduce((acc, record) => {
if (!record) return acc;
acc[record.id] = record;
return acc;
}, {});
Expand Down
Loading

0 comments on commit faba3df

Please sign in to comment.