api-platform / api-platform/admin
Issues with edit form when useEmbedded = true
- Dominant language
- TypeScript
- Stars
- 516
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
**API Platform version(s) affected**: 2.4.3
**Description**
I tried setting useEmbedded to true in my data provider (followed the example in [APIP documentation](https://api-platform.com/docs/admin/handling-relations/)). I created create and edit forms following the examples. In edit form I have:
```
({ name: searchText })}
format={v => v['@id'] || v}
reference="certificate_types"
source="certificateType"
>
```
The create view works as expected but edit is causing issues unless I reselect he certificate type field.
If I edit the page without touching the certificate type field the whole embedded data object is sent. If I reselect the certificate type field, only IRI is sent with the request.
Is this a bug or am I missing something?
Contributor guide
Assessment
This issue has not been assessed yet.