payload
payload copied to clipboard
Unpublish doesn't work in edit modal for relations field
Link to reproduction
No response
Describe the Bug
Hi! I found two similar bugs:
- If you open the document editing via the relation field and publish the document, its state changes only after the page is refreshed
- If you click publish in the same window, nothing happens. Although in fact the confirmation window appears, but it is not visible
To Reproduce
- Create two draft models, for example Main and Nested
- In Main add relation field to Nested
- Create one doc in Main and Nested
- In Main doc add Nested doc to field
- Click to edit Nested doc from field. Should open edit view modal
- Try to publish/unpublish
https://github.com/payloadcms/payload/assets/8946162/100d089c-feec-4fce-92af-f1f228d2885a
Payload Version
2.16.1
Adapters and Plugins
No response