diff --git a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx index e2f2fbfa6a9f..1336485dd9c5 100644 --- a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx +++ b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx @@ -77,18 +77,17 @@ export function SchemaProblemGroups(props: {problemGroups: SchemaValidationProbl > {group.path.map((segment, j) => { if (segment.kind === 'type') { + const text = `${_renderSegmentName(segment.name)}:${segment.type}` return ( - - {`${_renderSegmentName(segment.name)}:${ - segment.type - }`} + + {text} ) } if (segment.kind === 'property') { return ( - + {segment.name} )