Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type error
Swagger UI doesn't offer any facilities to clean up after itself, so we
have to tolerate it.
  • Loading branch information
amazon-meaisiah committed Jun 22, 2020
commit 73ee9ece049f33f3ee84468ab38e41e6b2f39bcd
6 changes: 5 additions & 1 deletion dev-portal/src/components/SwaggerUiLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ function InfoReplacement ({ specSelectors }) {
const docsUrl = externalDocs.get('url')

return <Observer>
{() => <Container fluid textAlign='left' className='fixfloat' style={{ padding: '40px 0px' }}>
{/*
If no API is loaded, let's just swallow the state and move on. (Swagger UI doesn't offer any
way to clean up after itself.)
*/}
{() => store.api == null ? null : <Container fluid textAlign='left' className='fixfloat' style={{ padding: '40px 0px' }}>
<div style={{ display: 'flex' }}>
<div style={{ flex: '0 0 auto', marginRight: '20px' }}>
<Image size='small' src={store.api.logo} />
Expand Down