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 = () => {
485
485
<EditDialog
486
486
fullWidth
487
487
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 }
489
489
isOpen = { isEditDialogOpen }
490
490
open = { openEditDialog }
491
491
close = { closeEditDialog }
Original file line number Diff line number Diff line change @@ -582,18 +582,14 @@ const EmployerEdit = () => (
582
582
< DataTable>
583
583
< DataTable .Col source= " first_name" / >
584
584
< 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 >
597
593
< / DataTable>
598
594
< / ReferenceManyField>
599
595
< / SimpleForm>
You can’t perform that action at this time.
0 commit comments