Describe the Bug
When a collection has a field with unique: true and autosave is enabled on the collection, the /create route stops working in some specific cases.
Link to the code that reproduces this issue
https://github.com/magicasaservice/payload-autosave-bug
Reproduction Steps
- Create new post
- Do not fill out anything for the slug, wait for it to autosave
- Exit the newly created post
- Try creating another post
- The screen is now empty, the console has a verbose error:
key not found: error:valueMustBeUnique
key not found: error:followingFieldsInvalid
Which area(s) are affected?
area: ui
Environment Info
Describe the Bug
When a collection has a field with
unique: trueand autosave is enabled on the collection, the/createroute stops working in some specific cases.Link to the code that reproduces this issue
https://github.com/magicasaservice/payload-autosave-bug
Reproduction Steps
Which area(s) are affected?
area: ui
Environment Info