Skip to content

Commit

Permalink
chore: render section instead of throw
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Sep 14, 2018
1 parent cbc9eab commit cb79271
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ContentItems/ContentItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ export class ContentItem extends React.Component<ContentItemProps> {
content = null;
break;
case 'tag':
content = <SectionItem {...this.props} />;
break;
case 'section':
content = <SectionItem {...this.props} />;
break;
case 'operation':
content = <OperationItem item={item as any} />;
break;
default:
throw new Error('Unknown item type');
content = <SectionItem {...this.props} />;
}

return (
Expand Down

0 comments on commit cb79271

Please sign in to comment.