Skip to content

"Non-unique keys" warning in the studio #80

@oskarengstrom

Description

@oskarengstrom

Describe the bug

I'm getting a warning in the studio about "Non-unique keys" on a internationalizedArrayString. This is after jsut opening the document fresh

The warning message:

"Non-unique keys
Several items in this list share the same identifier (key). Every item must have an unique identifier.

Developer info
This usually happens when items are created using an API client, and the _key property of each elements has been generated non-uniquely.

The value of the _key property must be a unique string."

The schema:

{
    name: "title",
    title: "Title",
    type: "internationalizedArrayString",
},

Screenshots

Skärmavbild 2024-10-01 kl  10 54 13 Skärmavbild 2024-10-01 kl  10 54 23

Which versions of Sanity are you using?

"sanity": "^3.58.0",

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

10.2.3
v20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions