Describe the Bug
Publishing a document in a non-default locale causes localized fields to show fallback values from the default locale. A full page reload shows the correct state. Seems like the publish action in PublishButton doesn't pass 'fallback-locale': 'null' like saveDraft and document reads do.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/blob/main/packages/ui/src/elements/PublishButton/index.tsx#L165-L172
Reproduction Steps
- Have localization enabled with a fallback locale
- Set a localized field in the default locale
- Switch to another locale, edit a different field, publish
- Localized field shows the default locale's value until you do a full page reload
Which area(s) are affected?
area: core
Environment Info
Describe the Bug
Publishing a document in a non-default locale causes localized fields to show fallback values from the default locale. A full page reload shows the correct state. Seems like the publish action in PublishButton doesn't pass 'fallback-locale': 'null' like saveDraft and document reads do.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/blob/main/packages/ui/src/elements/PublishButton/index.tsx#L165-L172
Reproduction Steps
Which area(s) are affected?
area: core
Environment Info