Skip to content

Commit

Permalink
Fix array-typed properties
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-md committed Jan 17, 2025
1 parent 9a5de91 commit d67c06f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/ApiReference/Property.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const Property: React.FC<{ property: any; required?: boolean }> = ({
? ''
: Array.isArray(property.value?.type)
? property.value?.type.join(' | ')
: (property.value?.type ?? property.value.schema?.type)}
: (property.value?.type ??
(Array.isArray(property.value.schema?.type)
? property.value.schema?.type.join(' | ')
: property.value.schema?.type))}
</code>
<Typography
variant='body1'
Expand Down

0 comments on commit d67c06f

Please sign in to comment.