Skip to content

Commit 0a8aafc

Browse files
authored
check to avoid tagGroup config before concat operation, api, schemas (#853)
Closes #792
1 parent 4e960fd commit 0a8aafc

File tree

1 file changed

+4
-1
lines changed
  • packages/docusaurus-plugin-openapi-docs/src/sidebars

1 file changed

+4
-1
lines changed

packages/docusaurus-plugin-openapi-docs/src/sidebars/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ function groupByTags(
9393
apiTags.push(tag.name!);
9494
}
9595
});
96-
apiTags = uniq(apiTags.concat(operationTags, schemaTags));
96+
97+
if (sidebarOptions.groupPathsBy !== "tagGroup") {
98+
apiTags = uniq(apiTags.concat(operationTags, schemaTags));
99+
}
97100

98101
const basePath = docPath
99102
? outputDir.split(docPath!)[1].replace(/^\/+/g, "")

0 commit comments

Comments
 (0)