Skip to content

Commit 2ecc8bc

Browse files
committed
fix: fix Authentication section is not rendered
fixes #590
1 parent 8fb9cd6 commit 2ecc8bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/ContentItems/ContentItems.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ export class SectionItem extends React.Component<ContentItemProps> {
8989
{name}
9090
</H1>
9191
{components ? (
92-
<Markdown source={description || ''} />
93-
) : (
9492
<StoreConsumer>
9593
{store => (
9694
<Markdown source={description || ''} allowedComponents={components} store={store} />
9795
)}
9896
</StoreConsumer>
97+
) : (
98+
<Markdown source={description || ''} />
9999
)}
100100
</MiddlePanel>
101101
</Row>

src/services/OpenAPIParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export class OpenAPIParser {
7676
const description = spec.info.description || '';
7777
const legacySecurityRegexp = new RegExp(
7878
COMPONENT_REGEXP.replace('{component}', '<security-definitions>'),
79-
'gmi',
79+
'mi',
8080
);
8181
const securityRegexp = new RegExp(
8282
MDX_COMPONENT_REGEXP.replace('{component}', 'security-definitions'),
83-
'gmi',
83+
'mi',
8484
);
8585
if (!legacySecurityRegexp.test(description) && !securityRegexp.test(description)) {
8686
const comment = buildComponentComment('security-definitions');

0 commit comments

Comments
 (0)