File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ export class SectionItem extends React.Component<ContentItemProps> {
89
89
{ name }
90
90
</ H1 >
91
91
{ components ? (
92
- < Markdown source = { description || '' } />
93
- ) : (
94
92
< StoreConsumer >
95
93
{ store => (
96
94
< Markdown source = { description || '' } allowedComponents = { components } store = { store } />
97
95
) }
98
96
</ StoreConsumer >
97
+ ) : (
98
+ < Markdown source = { description || '' } />
99
99
) }
100
100
</ MiddlePanel >
101
101
</ Row >
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ export class OpenAPIParser {
76
76
const description = spec . info . description || '' ;
77
77
const legacySecurityRegexp = new RegExp (
78
78
COMPONENT_REGEXP . replace ( '{component}' , '<security-definitions>' ) ,
79
- 'gmi ' ,
79
+ 'mi ' ,
80
80
) ;
81
81
const securityRegexp = new RegExp (
82
82
MDX_COMPONENT_REGEXP . replace ( '{component}' , 'security-definitions' ) ,
83
- 'gmi ' ,
83
+ 'mi ' ,
84
84
) ;
85
85
if ( ! legacySecurityRegexp . test ( description ) && ! securityRegexp . test ( description ) ) {
86
86
const comment = buildComponentComment ( 'security-definitions' ) ;
You can’t perform that action at this time.
0 commit comments