Skip to content

Commit 149dfec

Browse files
committed
fix: fix tab label
1 parent 20c8503 commit 149dfec

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)