Skip to content

Commit 746de8e

Browse files
committed
remove workaround #10715
1 parent 0e45376 commit 746de8e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,6 @@ const CreateAuthor = () => {
728728
};
729729

730730
export const InsideReferenceInputWithCreationSupport = () => {
731-
const optionRenderer = choice => {
732-
return choice.first_name && choice.last_name
733-
? `${choice.first_name} ${choice.last_name}`
734-
: `${choice.name}`;
735-
};
736731
return (
737732
<TestMemoryRouter initialEntries={['/books/1']}>
738733
<AdminContext
@@ -765,8 +760,6 @@ export const InsideReferenceInputWithCreationSupport = () => {
765760
>
766761
<SelectInput
767762
create={<CreateAuthor />}
768-
createLabel="Create a new Author"
769-
optionText={optionRenderer}
770763
/>
771764
</ReferenceInput>
772765
<FormInspector name="author" />

0 commit comments

Comments
 (0)