diff --git a/src/components/MediaTypeSwitch/MediaTypesSwitch.tsx b/src/components/MediaTypeSwitch/MediaTypesSwitch.tsx index 9294d792..0d33062f 100644 --- a/src/components/MediaTypeSwitch/MediaTypesSwitch.tsx +++ b/src/components/MediaTypeSwitch/MediaTypesSwitch.tsx @@ -23,7 +23,7 @@ export class MediaTypesSwitch extends React.Component { render() { const { content } = this.props; - if (!content || !content.mediaTypes) return null; + if (!content || !content.mediaTypes || !content.mediaTypes.length) return null; const activeMimeIdx = content.activeMimeIdx; let options = content.mediaTypes.map((mime, idx) => {