File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
packages/ra-ui-materialui/src/field Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,6 @@ ArrayFieldImpl.displayName = 'ArrayFieldImpl';
97
97
98
98
export const ArrayField = genericMemo ( ArrayFieldImpl ) ;
99
99
100
- ArrayField . propTypes = ArrayFieldImpl . propTypes ;
101
- ArrayField . displayName = 'ArrayField' ;
102
-
103
100
export interface ArrayFieldProps <
104
101
RecordType extends Record < string , unknown > = Record < string , any >
105
102
> extends FieldProps < RecordType > {
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ export const genericMemo: <T extends FunctionComponent>(component: T) => T = <
16
16
// On the memoized version so that components that inspect their children props may read them.
17
17
result . propTypes = component . propTypes ;
18
18
result . defaultProps = component . defaultProps ;
19
- result . displayName = component . displayName . replace ( 'Impl' , '' ) ;
19
+ result . displayName = component . displayName ? .replace ( 'Impl' , '' ) ;
20
20
return result ;
21
21
} ;
You can’t perform that action at this time.
0 commit comments