Skip to content

Commit 986d8a5

Browse files
djhislax57
andauthored
Apply suggestions from code review
Co-authored-by: Jean-Baptiste Kaiser <[email protected]>
1 parent 90fd4d9 commit 986d8a5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/ra-core/src/controller/input/ReferenceArrayInputBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const ReferenceArrayInputBase = <RecordType extends RaRecord = any>(
8888

8989
if (!render && !children) {
9090
throw new Error(
91-
"<EditBase> requires either a 'render' prop or 'children' prop"
91+
"<ReferenceArrayInputBase> requires either a 'render' prop or 'children' prop"
9292
);
9393
}
9494

packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export const ReferenceArrayInput = (props: ReferenceArrayInputProps) => {
8585
const defaultChildren = <AutocompleteArrayInput />;
8686

8787
export interface ReferenceArrayInputProps
88-
extends Omit<ReferenceArrayInputBaseProps, 'children'> {
89-
children?: React.ReactNode;
88+
extends ReferenceArrayInputBaseProps {
9089
label?: string;
9190
}

0 commit comments

Comments
 (0)