Skip to content

Commit 970d27c

Browse files
committed
fix tab label
1 parent fa0c6ff commit 970d27c

File tree

1 file changed

+1
-4
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/Schema

1 file changed

+1
-4
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/Schema/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ const AnyOneOf: React.FC<SchemaProps> = ({ schema, schemaType }) => {
116116
</span>
117117
<SchemaTabs>
118118
{schema[type]?.map((anyOneSchema: any, index: number) => {
119-
const label =
120-
anyOneSchema.title || isPrimitive(anyOneSchema)
121-
? anyOneSchema.type
122-
: `MOD${index + 1}`;
119+
const label = anyOneSchema.title || anyOneSchema.type;
123120
return (
124121
// @ts-ignore
125122
<TabItem

0 commit comments

Comments
 (0)