
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGreat to hear you solved it! For anyone else who stumbles upon this thread with similar issues, it sounds like the problem was related to preview configuration in a referenced document type.
This is a common gotcha in Sanity schemas. When you're working with references and trying to display them in the Studio (like in arrays, reference inputs, or search results), each referenced document type needs its own preview configuration defined in its schema.
A typical fix looks like this:
export default {
name: 'author',
type: 'document',
fields: [
{name: 'name', type: 'string'},
{name: 'image', type: 'image'},
],
preview: {
select: {
title: 'name',
media: 'image'
}
}
}Common issues that cause preview problems:
preview object entirely on the referenced typeselect objectprepare() function with incorrect return valuesIf you're still learning about previews, the Sanity documentation on previews covers all the details about select, prepare, and how to customize what shows up in the Studio UI.
Thanks for updating the thread with your solution - this kind of post helps the community a lot! 🙌
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