mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +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;
|
||||
break;
|
||||
case 'tag':
|
||||
content = <SectionItem {...this.props} />;
|
||||
break;
|
||||
case 'section':
|
||||
content = <SectionItem {...this.props} />;
|
||||
break;
|
||||
|
@ -46,7 +44,7 @@ export class ContentItem extends React.Component<ContentItemProps> {
|
|||
content = <OperationItem item={item as any} />;
|
||||
break;
|
||||
default:
|
||||
throw new Error('Unknown item type');
|
||||
content = <SectionItem {...this.props} />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user