Skip to content

Commit bd35348

Browse files
authored
Fix missing alternative schemas (#3058)
1 parent 77fd393 commit bd35348

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chilled-eggs-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/react-openapi': patch
3+
---
4+
5+
Fix missing alternative schemas

packages/react-openapi/src/OpenAPISchema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function OpenAPISchemaProperty(props: {
5050
circularRefs.set(schema, id);
5151

5252
const properties = getSchemaProperties(schema);
53-
if (properties) {
53+
if (properties?.length) {
5454
return (
5555
<OpenAPIDisclosure context={context} label={getDisclosureLabel(schema)}>
5656
<OpenAPISchemaProperties

0 commit comments

Comments
 (0)