File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments