This is a minimal reproduction of a bug I'm seeing with Payload's bulk edit feature.
I created the project using pnpx create-payload-app@latest
, added the Things.ts
collection
and added the Things
collection to the config. No other manual changes were made.
- Start Payload with a Postgres database
- Log into Admin
- Create a new thing, leave 'enabled' unchecked, but add an entry to the 'foos' array
- View the list of things, you should see
1 Foos
for the new thing - Check the thing you just created and click "Edit" to start bulk editing
- Toggle the 'enabled' field to true for the thing you just created
- Click "Save"
- Return to the list of things, you should see
0 Foos
for the thing you just edited