
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis sounds frustrating! While your gallery schema looks perfectly fine, Studio crashes when deleting array items (especially images) can happen for a few reasons. Let me walk you through the most common causes and solutions:
Most Common Causes:
Outdated Studio version - Array handling has had several bug fixes across Studio versions. Make sure you're running the latest version of the sanity package:
npm update sanityThen restart your dev server.
Browser cache/state corruption - Sometimes Studio's local state gets corrupted:
Invalid metadata configuration - If you've customized your image field with metadata options, check your configuration. According to the image metadata documentation, the valid options for the options.metadata array are: image, exif, location, lqip, blurhash, and palette.
Note that dimensions, hasAlpha, and isOpaque are always included automatically and should NOT be added to the metadata array - including them will throw an error. Make sure your schema doesn't look like this:
// ❌ INCORRECT - will cause errors
{
name: "gallery",
type: "array",
of: [{
type: "image",
options: {
metadata: ['dimensions', 'isOpaque'] // Don't do this!
}
}]
}Plugin conflicts - If you have custom plugins or older third-party plugins, they may not handle array mutations properly. Try temporarily disabling plugins to isolate the issue.
Debugging Steps:
Temporary Workaround:
Instead of using the bin icon, try:
If none of this helps, the browser console error message will be crucial for diagnosing the issue. Post it in the Sanity Slack community or search GitHub issues - the team is very responsive to crash reports and may have a specific fix for your Studio version.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store