Skip to content

Commit

Permalink
cleannnn
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed May 24, 2024
1 parent 472ae06 commit b616a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/components/VisualEditor/SchemaProperty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const SchemaProperty: React.FC<SchemaPropertyProps> = ({

const renderItemTypeDisplay = () => {

if (schema.type === 'array' && schema?.items && schema?.items?.type) {
if (schema.type === 'array' && 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 (
Expand Down

0 comments on commit b616a30

Please sign in to comment.