mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 03:53:43 +03:00
chore: render section instead of throw
This commit is contained in:
parent
cbc9eab00a
commit
cb79271ae4
|
@ -37,8 +37,6 @@ export class ContentItem extends React.Component<ContentItemProps> {
|
||||||
content = null;
|
content = null;
|
||||||
break;
|
break;
|
||||||
case 'tag':
|
case 'tag':
|
||||||
content = <SectionItem {...this.props} />;
|
|
||||||
break;
|
|
||||||
case 'section':
|
case 'section':
|
||||||
content = <SectionItem {...this.props} />;
|
content = <SectionItem {...this.props} />;
|
||||||
break;
|
break;
|
||||||
|
@ -46,7 +44,7 @@ export class ContentItem extends React.Component<ContentItemProps> {
|
||||||
content = <OperationItem item={item as any} />;
|
content = <OperationItem item={item as any} />;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('Unknown item type');
|
content = <SectionItem {...this.props} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user