Skip to content

Commit 62e8985

Browse files
committed
remove workaround #10715
1 parent 7ae9b71 commit 62e8985

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/ra-ui-materialui/src/input/SelectArrayInput.stories.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -742,11 +742,6 @@ const CreateAuthor = () => {
742742
};
743743

744744
export const InsideReferenceArrayInputAndCreationSupport = () => {
745-
const optionRenderer = choice => {
746-
return choice.first_name && choice.last_name
747-
? `${choice.first_name} ${choice.last_name}`
748-
: `${choice.name}`;
749-
};
750745
return (
751746
<TestMemoryRouter initialEntries={['/books/1']}>
752747
<AdminContext
@@ -780,7 +775,6 @@ export const InsideReferenceArrayInputAndCreationSupport = () => {
780775
<SelectArrayInput
781776
create={<CreateAuthor />}
782777
createLabel="Create a new Author"
783-
optionText={optionRenderer}
784778
/>
785779
</ReferenceArrayInput>
786780
<FormInspector name="authors" />

0 commit comments

Comments
 (0)