From d9ffd9e43e7ef83d2aa7b5e6e76caacbc3644e30 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Wed, 3 Jul 2024 14:10:06 +0200 Subject: [PATCH] [TypeScript] Fix ReferenceField Props type is confusing --- packages/ra-ui-materialui/src/field/ReferenceField.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/ra-ui-materialui/src/field/ReferenceField.tsx b/packages/ra-ui-materialui/src/field/ReferenceField.tsx index 01d51c085b5..dabf5ce8c7d 100644 --- a/packages/ra-ui-materialui/src/field/ReferenceField.tsx +++ b/packages/ra-ui-materialui/src/field/ReferenceField.tsx @@ -81,8 +81,7 @@ export const ReferenceField = < export interface ReferenceFieldProps< RecordType extends Record = Record, ReferenceRecordType extends RaRecord = RaRecord, -> extends Omit, 'source'>, - Required, 'source'>> { +> extends FieldProps { children?: ReactNode; queryOptions?: Partial< UseQueryOptions & {