File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/ra-ui-materialui/src/field Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export const ArrayField = genericMemo(ArrayFieldImpl);
100100export interface ArrayFieldProps <
101101 RecordType extends Record < string , unknown > = Record < string , any >
102102> extends FieldProps < RecordType > {
103- children : ReactNode ;
103+ children ? : ReactNode ;
104104 perPage ?: number ;
105105 sort ?: SortPayload ;
106106 filter ?: FilterPayload ;
Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ export const ChipField = genericMemo(ChipFieldImpl);
5454export interface ChipFieldProps <
5555 RecordType extends Record < string , unknown > = Record < string , any >
5656> extends FieldProps < RecordType > ,
57- Omit < ChipProps , 'label' > { }
57+ Omit < ChipProps , 'label' | 'children' > {
58+ /**
59+ * @internal do not use (prop required for TS to be able to cast ChipField as FunctionComponent)
60+ */
61+ children ?: React . ReactNode ;
62+ }
5863
5964const PREFIX = 'RaChipField' ;
6065
You can’t perform that action at this time.
0 commit comments