Skip to content

Commit

Permalink
fix badge display
Browse files Browse the repository at this point in the history
  • Loading branch information
bodnia committed Mar 29, 2017
1 parent c38bf2a commit 0b668cc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/core/components/online-validator-badge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class OnlineValidatorBadge extends React.Component {
let { validatorUrl } = getConfigs()
this.state = {
url: specSelectors.url(),
validatorUrl: validatorUrl === undefined ? "https://online.swagger.io/validator" : null
validatorUrl: validatorUrl === undefined ? "https://online.swagger.io/validator" : validatorUrl
}
}

Expand All @@ -23,7 +23,7 @@ export default class OnlineValidatorBadge extends React.Component {

this.setState({
url: specSelectors.url(),
validatorUrl: validatorUrl === undefined ? "https://online.swagger.io/validator" : null
validatorUrl: validatorUrl === undefined ? "https://online.swagger.io/validator" : validatorUrl
})
}

Expand Down

0 comments on commit 0b668cc

Please sign in to comment.