Skip to content

Commit

Permalink
fix: rename request snippets configuration props (#7535)
Browse files Browse the repository at this point in the history
Closes #7534
  • Loading branch information
mathis-m committed Oct 8, 2021
1 parent 491d641 commit 90c8a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/index.js
Expand Up @@ -69,7 +69,7 @@ export default function SwaggerUI(opts) {
},
},
defaultExpanded: true,
languagesMask: null, // e.g. only show curl bash = ["curl_bash"]
languages: null, // e.g. only show curl bash = ["curl_bash"]
},
supportedSubmitMethods: [
"get",
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/request-snippets/selectors.js
Expand Up @@ -10,7 +10,7 @@ export const getGenerators = createSelector(
.get("languages")
const generators = state
.get("generators", Map())
if(!languageKeys) {
if(!languageKeys || languageKeys.isEmpty()) {
return generators
}
return generators
Expand Down

0 comments on commit 90c8a73

Please sign in to comment.