Skip to content

Commit 0a94c8d

Browse files
committed
Fix incorrect documentation of EditInDialogButton.
1 parent 6bf3c34 commit 0a94c8d

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

docs/EditDialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ const EmployerSimpleFormWithFullyControlledDialogs = () => {
485485
<EditDialog
486486
fullWidth
487487
maxWidth="md"
488-
record={{ employer_id: record?.id }} // pre-populates the employer_id to link the new customer to the current employer
488+
record={record}
489489
isOpen={isEditDialogOpen}
490490
open={openEditDialog}
491491
close={closeEditDialog}

docs/ReferenceManyField.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -582,18 +582,14 @@ const EmployerEdit = () => (
582582
<DataTable>
583583
<DataTable.Col source="first_name" />
584584
<DataTable.Col source="last_name" />
585-
<DataTable.Col
586-
render={record => (
587-
<EditInDialogButton>
588-
<SimpleForm
589-
record={{ employer_id: record.id }}
590-
>
591-
<TextInput source="first_name" />
592-
<TextInput source="last_name" />
593-
</SimpleForm>
594-
</EditInDialogButton>
595-
)}
596-
/>
585+
<DataTable.Col>
586+
<EditInDialogButton>
587+
<SimpleForm>
588+
<TextInput source="first_name" />
589+
<TextInput source="last_name" />
590+
</SimpleForm>
591+
</EditInDialogButton>
592+
</DataTable.Col>
597593
</DataTable>
598594
</ReferenceManyField>
599595
</SimpleForm>

0 commit comments

Comments
 (0)