sanity-io / sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content
https://www.sanity.io
MIT License
5.33k stars 431 forks source link

The structure tool crashed: Error: The string contains invalid characters. #5796

Open ab-smith opened 9 months ago

ab-smith commented 9 months ago

Hello I've accidentally copied an svg in a string field on the studio and currently stuck and cannot revert that nor recover my previous work:

image

The structure tool crashed: Error: The string contains invalid characters.

Thank you

juice49 commented 9 months ago

Hi Abder. Do you happen to know what the SVG string is? You can get the document's data using the Sanity CLI:

sanity documents get $documentId