Skip to content

Issue with Component Order Mismatch in Dynamic Zone After upgrade to v5.4.0 #22250

@panupong-chaetan

Description

@panupong-chaetan

Bug report

Required System information

  • Node.js version: 18.18.2
  • NPM version: 10.9.0
  • Strapi version: 5.4.1
  • Database: mysql
  • Operating system: windows 10
  • Is your project Javascript or Typescript: Typescript

Description of the Issue

The order of components displayed in the dynamic zone on localhost does not match the order configured in the Strapi admin panel. This discrepancy makes it difficult to ensure consistent rendering between the admin interface and the local environment.
This problem occured after upgrade from v5.3.0 to v5.4.0.
Previously I used v5.3.0 without any problems.

Steps to reproduce the behavior

  1. Log in to the Strapi admin panel.
  2. Navigate to a content type that includes a dynamic zone.
  3. Add multiple components to the dynamic zone and arrange them in a specific order.
  4. Save the changes.
  5. Query the content type through the API or render it in the frontend on localhost.
  6. Observe that the order of the components displayed does not match the order configured in the admin panel.

Expected behavior

The order of components displayed on localhost should match the order set in the Strapi admin panel for the dynamic zone.

Actual behavior

The order of components displayed on localhost is incorrect and does not align with the order set in the Strapi admin panel.

Screenshots

Screenshot 2024-11-24 145648

Screenshot 2024-11-24 145652

Screenshot 2024-11-23 152736

Screenshot 2024-11-23 152344

image

Code snippets

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: EEIssues correlates to internal EE ticketissue: bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productsource: core:databaseSource is core/database packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5

    Type

    No type

    Projects

    Status

    Fixed/Shipped

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions