ObjectParameterError thrown when checking "Fallback to default locale" on a localized array and saving the non default locale version of a document #11245
Labels
status: needs-triage
Possible bug which hasn't been reproduced yet
Describe the Bug
For localized array fields, inside the non default locale version of the doc, the "Fallback to default locale" checkbox is shown:
When checking the box and saving the document, the following error is thrown and therefore the "Something went wrong" toast is shown:
Show error with stack trace
This bug occurs when using the mongodb adapter, I could not test if it also happens when using postgres. The above checkbox is implemented in the NullifyField component.
The issue was also reported by other devs on the discord server.
Thanks in advance payload team 🖤
Link to the code that reproduces this issue
https://github.com/devj3ns/payload-nullify-field-bug
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: