strapi / strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.
https://strapi.io
Other
63.79k stars 8.13k forks source link

Not Saving Order of Components in Dynamic Zone When Published #22170

Open 1337NamNori opened 9 hours ago

1337NamNori commented 9 hours ago

Bug report

Required System information

Describe the bug

Strapi Not Saving Order of Components in Dynamic Zone When Published

Steps to reproduce the behavior

  1. Go to Article edit page
  2. Drag and Drop components in dynamic zone
  3. Click on Save
  4. Switch to Published tab
  5. See error: Component order is not save like expect (in DB, column article_cmps.order is not saved for Published document, only saved for Draft document)

    Expected Behavior:

The order of components in the dynamic zone should be preserved after publishing the content.

Actual Behavior:

The order of components is not preserved, and they appear in a different order after publishing.

Additional Information:

I have ensured that the dynamic zone is correctly configured in the Content-Type Builder. I am using the latest version of Strapi. I have not implemented any custom save logic for the dynamic zone.

https://github.com/user-attachments/assets/8c9fee63-c8d0-4ab7-acc6-eeeb5c24ba22

kjfranke commented 3 hours ago

Having the same issue, after publishing the order field isn't set or set to null

alexander-aleman commented 3 hours ago

I'm having the same issue