Skip to content

Commit 13a3f62

Browse files
committed
merge all user-defined languageTabs options
1 parent 800c1b1 commit 13a3f62

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/languages.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ export const mergeArraysbyLanguage = (arr1: any, arr2: any) => {
5151
find(arr2, ["language", item["language"]]),
5252
];
5353
return mergeWith({}, ...matchingItems, (objValue: any) => {
54-
if (isArray(objValue)) {
55-
return objValue;
56-
}
57-
return undefined;
54+
return objValue;
5855
});
5956
});
6057
};

0 commit comments

Comments
 (0)