Nested object in fieldset causing unintentional double collapse
{
type: 'image',
name: 'image',
title: 'Core Image',
fieldset: 'media'
},
{
...image,
name: 'secondaryImage',
description: 'Shows up on the Product Landing Spice Stats Module',
title: 'Secondary Image',
fieldset: 'media'
},collapsed: falseon the
secondaryImageobject? Or otherwise
collapsible: false?
export const image = {
name: "image",
title: "Image",
type: "object",
options: {
collapsed: false
},
fields: [
{
name: 'image',
type: 'image',
title: 'Image',
options: {
hotspot: true
},
validation: Rule => Rule.required()
},
{
name: 'altText',
title: 'Alt Text',
type: 'string'
},
]
}Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
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.