payload icon indicating copy to clipboard operation
payload copied to clipboard

Status does not update when saving draft or publishing during live preview

Open stofolus opened this issue 2 years ago • 5 comments

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.

CleanShot 2024-09-17 at 07 23 38

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

stofolus avatar Sep 17 '24 05:09 stofolus

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.

github-actions[bot] avatar Dec 13 '24 05:12 github-actions[bot]

This issue was automatically closed due to lack of activity.

github-actions[bot] avatar Dec 21 '24 05:12 github-actions[bot]

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!

PatrikKozak avatar Mar 03 '25 16:03 PatrikKozak

Hi @PatrikKozak thanks for reaching out.

I agree that this is now resolved and is no longer an issue

stofolus avatar Mar 03 '25 17:03 stofolus

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Mar 11 '25 05:03 github-actions[bot]