diff --git a/packages/ui/components/VisualEditor/SchemaProperty.tsx b/packages/ui/components/VisualEditor/SchemaProperty.tsx index 635d4df3f..ec0e6d00f 100644 --- a/packages/ui/components/VisualEditor/SchemaProperty.tsx +++ b/packages/ui/components/VisualEditor/SchemaProperty.tsx @@ -207,7 +207,7 @@ const SchemaProperty: React.FC = ({ const renderItemTypeDisplay = () => { - if (schema.type === 'array' && schema.items && schema.items.type) { + if (schema.type === 'array' && schema?.items && schema?.items?.type) { const itemTypes = Array.isArray(schema.items.type) ? schema.items.type : [schema.items.type]; const displayItemTypes = itemTypes.map((type: string) => type.charAt(0).toUpperCase() + type.slice(1)); return (