
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see the issue! When you define an array in Sanity, the of property should contain object types, not just plain field definitions. You're defining fields like you would in a document or object type, but array members need to be wrapped in an object type structure.
Here's the corrected version:
export default {
title: 'Columns',
name: 'columns',
type: 'array',
of: [
{
type: 'object',
fields: [
{
name: 'columnTitle',
type: 'string',
title: 'Title'
},
{
name: 'columnSubTitle',
type: 'string', // Changed from 'subTitle' unless you have a custom type
title: 'Subtitle'
},
{
name: 'columnImage',
type: 'image',
title: 'Image'
},
],
},
],
};The key changes:
of array should contain object definitions that have a type: 'object' and a fields arrayfields property: Your title, subtitle, and image fields go inside the fields array of the objecttype: 'subTitle' to type: 'string' (unless you have a custom subTitle type defined elsewhere)The way you had it, Sanity was treating each item as a separate type that could be added to the array (like how block content arrays can have different types of content). But what you want is a single object type that contains all three fields together.
Now when you add an item to the array, you'll get a single object with all three fields (title, subtitle, and image) that you can fill in. The image worked before because image is a valid standalone type, but string fields need to be part of an object structure within arrays.
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