mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 21:30:21 +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() {
|
||||
const items = this.props.items;
|
||||
if (items.length === 0) {
|
||||
return <MiddlePanel compact={false}>Cannot find path or webhooks items</MiddlePanel>;
|
||||
return null;
|
||||
}
|
||||
return items.map(item => {
|
||||
return <ContentItem key={item.id} item={item} />;
|
||||
|
|
|
@ -238,7 +238,8 @@ export class MenuBuilder {
|
|||
const operationInfo = path[operationName];
|
||||
if (path.$ref) {
|
||||
const resolvedPaths = parser.deref<OpenAPIPaths>(path as OpenAPIPaths);
|
||||
getTags(parser, { [operationName]: resolvedPaths }, isWebhook);
|
||||
getTags(parser, { [pathName]: resolvedPaths }, isWebhook);
|
||||
continue;
|
||||
}
|
||||
let operationTags = operationInfo?.tags;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user