mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
fix: resolve webhooks and content items problem
This commit is contained in:
parent
456666eaa2
commit
0c91eef92f
|
@ -15,7 +15,7 @@ export class ContentItems extends React.Component<{
|
||||||
render() {
|
render() {
|
||||||
const items = this.props.items;
|
const items = this.props.items;
|
||||||
if (items.length === 0) {
|
if (items.length === 0) {
|
||||||
return <MiddlePanel compact={false}>Cannot find path or webhooks items</MiddlePanel>;
|
return null;
|
||||||
}
|
}
|
||||||
return items.map(item => {
|
return items.map(item => {
|
||||||
return <ContentItem key={item.id} item={item} />;
|
return <ContentItem key={item.id} item={item} />;
|
||||||
|
|
|
@ -238,7 +238,8 @@ export class MenuBuilder {
|
||||||
const operationInfo = path[operationName];
|
const operationInfo = path[operationName];
|
||||||
if (path.$ref) {
|
if (path.$ref) {
|
||||||
const resolvedPaths = parser.deref<OpenAPIPaths>(path as OpenAPIPaths);
|
const resolvedPaths = parser.deref<OpenAPIPaths>(path as OpenAPIPaths);
|
||||||
getTags(parser, { [operationName]: resolvedPaths }, isWebhook);
|
getTags(parser, { [pathName]: resolvedPaths }, isWebhook);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
let operationTags = operationInfo?.tags;
|
let operationTags = operationInfo?.tags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user