Skip to content

Languages reorder crash the field on the published document #520

@anonim2214

Description

@anonim2214

Describe the bug

I integrated Sanity with another CMS to pull translations from it. So I've faced with the problem that I can't see my published document. After my investigation I found the problem in sorting algorytm.

To Reproduce

  1. Create a release in Sanity
  2. Push the document with random langugage order in this release with API
  3. Do not open the version of this document befor release
  4. Publish the release
  5. Open published document

Expected behavior

I can see published document in sanity

Screenshots

Image

Which versions of Sanity are you using?

3.98.0

What operating system are you using?

MacOS 15.5

Which versions of Node.js / npm are you running?

10.2.4

Additional context
I guess the problem in this funcion
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions