fix crash for responses without content but with headers

This commit is contained in:
Roman Hotsiy 2017-11-21 16:37:05 +02:00
parent f607b98866
commit f58ef3f0c9
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -39,7 +39,7 @@ export class ResponseView extends React.Component<{ response: ResponseModel }> {
<ResponseDetailsWrap> <ResponseDetailsWrap>
<ResponseHeaders headers={headers} /> <ResponseHeaders headers={headers} />
<MediaTypesSwitch <MediaTypesSwitch
content={content!} content={content}
renderDropdown={props => ( renderDropdown={props => (
<UnderlinedHeader key="header"> <UnderlinedHeader key="header">
Response Schema: <DropdownOrLabel {...props} /> Response Schema: <DropdownOrLabel {...props} />