diff --git a/src/FieldGuesser.tsx b/src/FieldGuesser.tsx index 90e123de..d715d817 100644 --- a/src/FieldGuesser.tsx +++ b/src/FieldGuesser.tsx @@ -23,6 +23,7 @@ import type { NumberFieldProps, ReferenceArrayFieldProps, ReferenceFieldProps, + SingleFieldListProps, TextFieldProps, UrlFieldProps, } from 'react-admin'; @@ -65,11 +66,13 @@ const renderField = ( } const fieldName = schemaAnalyzer.getFieldNameFromSchema(field.reference); + const { linkType, ...rest } = props as ReferenceArrayFieldProps & + Pick; return ( - + diff --git a/src/types.ts b/src/types.ts index 30032f7d..25124da4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -47,6 +47,7 @@ import type { ResourceProps, ShowProps, SimpleFormProps, + SingleFieldListProps, TabbedFormProps, TextFieldProps, TextInputProps, @@ -452,7 +453,7 @@ export type FieldProps = | UrlFieldProps | EmailFieldProps | ArrayFieldProps - | ReferenceArrayFieldProps + | (ReferenceArrayFieldProps & Pick) | EnumFieldProps | ReferenceFieldProps;