Status does not update when saving draft or publishing during live preview
Link to reproduction
No response
Environment Info
Binaries:
Node: 20.12.1
npm: 10.7.0
Yarn: N/A
pnpm: 9.6.0
Relevant Packages:
payload: 3.0.0-beta.107
next: 15.0.0-canary.104
@payloadcms/db-mongodb: 3.0.0-beta.107
@payloadcms/email-nodemailer: 3.0.0-beta.107
@payloadcms/graphql: 3.0.0-beta.107
@payloadcms/live-preview: 3.0.0-beta.107
@payloadcms/live-preview-react: 3.0.0-beta.107
@payloadcms/next/utilities: 3.0.0-beta.107
@payloadcms/plugin-cloud: 3.0.0-beta.107
@payloadcms/plugin-form-builder: 3.0.0-beta.107
@payloadcms/plugin-nested-docs: 3.0.0-beta.107
@payloadcms/plugin-redirects: 3.0.0-beta.107
@payloadcms/plugin-seo: 3.0.0-beta.107
@payloadcms/richtext-lexical: 3.0.0-beta.107
@payloadcms/translations: 3.0.0-beta.107
@payloadcms/ui/shared: 3.0.0-beta.107
react: 19.0.0-rc-06d0b89e-20240801
react-dom: 19.0.0-rc-06d0b89e-20240801
Describe the Bug
Status of a collection is not updated when pressing save draft or publish. If the original status i published it wont even allow the document to be published if you press the save draft button first.
When checking the network tab there seems to be fewer calls made to the backend when when the live preview is active.
Reproduction Steps
npx create-payload-app@beta
Go into the collection and change the draft config to true (disable autosave)
Adapters and Plugins
db-mongodb
This issue has been marked as stale due to lack of activity.
To keep this issue open, please indicate that it is still relevant in a comment below.
This issue was automatically closed due to lack of activity.
Hey @stofolus - appreciate your patience with this one!
I just went ahead and tried to reproduce the issue above on Payload version 3.25.0 and was unable to. Looks like the status is properly updating when saving as draft or publishing from with the Live Preview tab.
Can you confirm on your end using version 3.25.0 if you're still experiencing this? Thank you!
Hi @PatrikKozak thanks for reaching out.
I agree that this is now resolved and is no longer an issue
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.