chore: render section instead of throw

This commit is contained in:
Roman Hotsiy 2018-09-14 09:55:02 +03:00
parent cbc9eab00a
commit cb79271ae4
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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 (