Skip to content

Commit

Permalink
fix: do not crash on empty scopes
Browse files Browse the repository at this point in the history
fixes #1044
  • Loading branch information
RomanHotsiy committed Sep 30, 2019
1 parent 9f0694c commit e787d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SecuritySchemes/SecuritySchemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class OAuthFlow extends React.PureComponent<OAuthFlowProps> {
<strong> Scopes: </strong>
</div>
<ul>
{Object.keys(flow!.scopes).map(scope => (
{Object.keys(flow!.scopes || {}).map(scope => (
<li key={scope}>
<code>{scope}</code> - <Markdown inline={true} source={flow!.scopes[scope] || ''} />
</li>
Expand Down

0 comments on commit e787d9e

Please sign in to comment.