Bug: cannot write to read only property crop
#3441
Unanswered
coreyward
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running into an error in the v3 Studio: “TypeError: Cannot assign to read only property 'crop' of object '#'”. I have a fairly simple demo schema with an image with a hotspot and this happens when clicking in to edit the image (in the PT editor) after setting the hotspot.
Here's my schema (using sanity-pills):
Here's the entry in my portable text content—seems valid at a glance:
{ "_key": "6a301adce983", "_type": "inlinePhoto", "caption": "Entrance neon at Meanwhile Brewing Company in Austin, TX", "image": { "_type": "image", "asset": { "_ref": "image-4e361da2735deb4eb71bbacfc3c29f4a4d28932b-5584x8368-jpg", "_type": "reference" }, "crop": { "_type": "sanity.imageCrop", "bottom": 0, "left": 0, "right": 0, "top": 0 }, "hotspot": { "_type": "sanity.imageHotspot", "height": 0.15280882352941044, "width": 0.24264705882353096, "x": 0.5367647058823527, "y": 0.46327205882352973 } } }Beta Was this translation helpful? Give feedback.
All reactions