-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Plugin version
0.10.0
Payload version
3.64.0
Auth.js version
5.0.0.beta
Describe the bug
When defining fields with admin.position: 'sidebar' on a user collection, they get merged into the "General" tab instead of staying at the root level.
Current behavior:
In index.ts , restFields (user-defined fields that don't match existing field names) are pushed into the first tab:
(collection.fields[1] as TabsField).tabs[0].fields.push(...restFields);This breaks sidebar positioning since Payload requires sidebar fields to be at the collection's root level.
Expected behavior:
Fields with admin.position: 'sidebar' should remain at the root level of collection.fields.
To Reproduce
- Create a user collection with a sidebar field:
const Users: CollectionConfig = {
slug: "users",
fields: [
{
name: "status",
type: "select",
options: ["active", "inactive"],
admin: { position: "sidebar" },
},
],
};- Add
authjsPluginto your Payload config - Field appears in the "General" tab instead of the sidebar
Additional context / Screenshots
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working