payload
payload copied to clipboard
Document Actions Missing in Drawer
Link to reproduction
No response
Payload Version
3.0.0-beta.71
Node Version
v20.9.0
Next.js Version
15.0.0-canary.77
Describe the Bug
When editing a document in a drawer, the actions to duplicate and delete are missing
Reproduction Steps
- Clone the payload 3.0 demo
- Add a user relationship field to the pages collection:
{
slug: 'pages',
admin: {
useAsTitle: 'title',
},
fields: [
{
name: 'title',
type: 'text',
},
{
name: 'content',
type: 'richText',
},
{
name: 'user',
type: 'relationship',
relationTo: 'users',
},
],
},
- Update the following code from the user collection:
access: {
delete: () => true,
update: () => false,
},
- Run
pnpm dev - Ensure that the delete action is available when editing a user outside of the drawer
- Select a user within a pages document
- Open the drawer to edit the user
- The delete action is unavailable
Adapters and Plugins
No response
Hey @tobiasiv — we will check into this. I believe it is intentional but I'll get with the team to double-check. We will need to brainstorm the desired UX for duplicating from a drawer, but we should be able to figure it out.
This was done in #7679 and has been released since v3.0.0-beta.104.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.