Skip to content
Snippets Groups Projects

feat: implement relation edition in provider

Merged François Ferry requested to merge topic/default/edit_relation into branch/default
1 unresolved thread
3 files
+ 100
16
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 9
0
@@ -73,6 +73,15 @@ const MuseumEdit = (props: EditProps) => {
<NumberInput {...inputProps("latitude")} />
<NumberInput {...inputProps("longitude")} />
<TextInput {...inputProps("postal_address")} />
<ReferenceArrayInput
label="City"
source="is_in"
reference="City"
sort={{ field: "name", order: "ASC" }}
filterToQuery={(text: string) => ({ name: text })}
>
<AutocompleteArrayInput optionText="name" />
</ReferenceArrayInput>
</SimpleForm>
</Edit>
);
Loading