I must have missed something. Shouldn't it update the existing users in the collection when adding a new field?
The field:
{
name: "role",
type: "radio",
defaultValue: () => ["user"],
required: true,
options: [
{
label: "User",
value: "user",
},
{
label: "Admin",
value: "admin",
},
],
},
Any ideas?
EDIT:
Was first using a select instead of radio, so I missed changing the
["user"]
. Solved the issue 🙂
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.