payload icon indicating copy to clipboard operation
payload copied to clipboard

Unpublish doesn't work in edit modal for relations field

Open sagdeev opened this issue 1 year ago • 0 comments

Link to reproduction

No response

Describe the Bug

Hi! I found two similar bugs:

  1. If you open the document editing via the relation field and publish the document, its state changes only after the page is refreshed
  2. If you click publish in the same window, nothing happens. Although in fact the confirmation window appears, but it is not visible

To Reproduce

  1. Create two draft models, for example Main and Nested
  2. In Main add relation field to Nested
  3. Create one doc in Main and Nested
  4. In Main doc add Nested doc to field
  5. Click to edit Nested doc from field. Should open edit view modal
  6. 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

sagdeev avatar May 09 '24 10:05 sagdeev