You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: upload drawer not loading data for uploads without files (#15150)
### What?
Fixes an issue where clicking the `edit` button on an upload
relationship field opens an empty drawer **if the related document has
no file attached** (`filesRequiredOnCreate: false`). Documents with a
file open correctly with all data.
### Why?
The drawer ID was only getting set when a file URL existed (`src ? id :
undefined`), so documents without files didn’t pass their ID to the
drawer. The drawer needs the document ID to display document data.
### How?
Updated the drawer ID logic in `fields > Upload > RelationshipContent`
from `src ? id : undefined` to `id ?? undefined`.
#### Testing
Test added to the `upload` suite.
**Reported by client.**
0 commit comments