We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95550eb commit 174c2dbCopy full SHA for 174c2db
packages/docusaurus-plugin-openapi-docs/src/index.ts
@@ -29,7 +29,8 @@ export function getDocsPluginConfig(
29
): Object | undefined {
30
// eslint-disable-next-line array-callback-return
31
const filteredConfig = presetsPlugins.filter((data) => {
32
- if (data[0] === pluginId) {
+ // Search presets
33
+ if (data[0].endsWith(pluginId)) {
34
return data[1];
35
}
36
@@ -43,7 +44,7 @@ export function getDocsPluginConfig(
43
44
})[0];
45
if (filteredConfig) {
46
// Search presets, e.g. "classic"
- if (filteredConfig[0] === pluginId) {
47
+ if (filteredConfig[0].endsWith(pluginId)) {
48
return filteredConfig[1].docs;
49
50
0 commit comments