Skip to content

Commit

Permalink
fix: fix Authentication section is not rendered
Browse files Browse the repository at this point in the history
fixes #590
  • Loading branch information
RomanHotsiy committed Aug 7, 2018
1 parent 8fb9cd6 commit 2ecc8bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/ContentItems/ContentItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export class SectionItem extends React.Component<ContentItemProps> {
{name}
</H1>
{components ? (
<Markdown source={description || ''} />
) : (
<StoreConsumer>
{store => (
<Markdown source={description || ''} allowedComponents={components} store={store} />
)}
</StoreConsumer>
) : (
<Markdown source={description || ''} />
)}
</MiddlePanel>
</Row>
Expand Down
4 changes: 2 additions & 2 deletions src/services/OpenAPIParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ export class OpenAPIParser {
const description = spec.info.description || '';
const legacySecurityRegexp = new RegExp(
COMPONENT_REGEXP.replace('{component}', '<security-definitions>'),
'gmi',
'mi',
);
const securityRegexp = new RegExp(
MDX_COMPONENT_REGEXP.replace('{component}', 'security-definitions'),
'gmi',
'mi',
);
if (!legacySecurityRegexp.test(description) && !securityRegexp.test(description)) {
const comment = buildComponentComment('security-definitions');
Expand Down

0 comments on commit 2ecc8bc

Please sign in to comment.