Skip to content

Commit b8e1f1c

Browse files
authored
Merge pull request swagger-api#2802 from bodnia/fix-auth-btn
Fix display of auth button not to depend on schemes
2 parents 822dda8 + a13dc1e commit b8e1f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/swagger-ui-standalone-preset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/standalone/layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class StandaloneLayout extends React.Component {
7979
</div>
8080
) : null }
8181

82-
{ !schemes && securityDefinitions ? (
82+
{ (!schemes || !schemes.size) && securityDefinitions ? (
8383
<div className="scheme-container">
8484
<Col className="schemes wrapper" mobile={12}>
8585
{ securityDefinitions ? (

0 commit comments

Comments
 (0)