Skip to content

Commit 4a14dbc

Browse files
authored
Merge pull request #8229 from marmelab/fix-radio-button-2
Fix `useReferenceInputController` all choices merge in case `id` is not a string
2 parents 9da0c82 + f9372d6 commit 4a14dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/controller/input/useReferenceInputController.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const useReferenceInputController = <RecordType extends RaRecord = any>(
122122
let finalData: RecordType[], finalTotal: number;
123123
if (
124124
!referenceRecord ||
125-
possibleValuesData.find(record => record.id === currentValue)
125+
possibleValuesData.find(record => record.id === referenceRecord.id)
126126
) {
127127
finalData = possibleValuesData;
128128
finalTotal = total;

0 commit comments

Comments
 (0)