diff --git a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx index c9ef3fef9e7..64beda4b3e8 100644 --- a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx +++ b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx @@ -74,18 +74,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} )