fix for swagger-2 header type not showing

This commit is contained in:
daniel-smartbear
2017-11-27 14:53:35 +00:00
parent a7a50b8457
commit 9603905d1d

View File

@@ -36,7 +36,7 @@ export default class Headers extends React.Component {
if(!Im.Map.isMap(header)) {
return null
}
const type = header.getIn(["schema", "type"])
const type = header.getIn(["schema"]) ? header.getIn(["schema", "type"]) : header.getIn(["type"])
const schemaExample = header.getIn(["schema", "example"])
return (<tr key={ key }>