Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Issue with invisible characters in Sanity schema field value resolved

8 replies
Last updated: Jun 19, 2024
Hi. I have an issue that I cant understand.In a schema i have this field

    {
      title: 'Image Position',
      name: 'imagePosition',
      type: 'string',
      options: {
        list: [
          {title: 'Left', value: 'left'},
          {title: 'Right', value: 'right'},
        ],
      },
    },
Jun 19, 2024, 4:27 PM
The field is in the response,But when i copy the value it contains a lot of characters that is not visible.
Why is that?
Jun 19, 2024, 4:30 PM
Those characters makes this check to not work.
Jun 19, 2024, 4:31 PM
Inside the value of a field? I don't really understand.
Jun 19, 2024, 4:43 PM
Ah, the second link helped! Thank you!!
Jun 19, 2024, 4:45 PM
It's encoded data that includes a mapping to its source in the Studio. You can disable it by setting stega to false in your Sanity client or decode it by following the articles above.
Jun 19, 2024, 4:45 PM
Cool, glad to hear!
Jun 19, 2024, 4:46 PM
Really appreciate the swift response!
Jun 19, 2024, 4:46 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?