fix for swagger-2 header type not showing

This commit is contained in:
daniel-smartbear
2017-11-30 10:55:17 +00:00
parent a7a50b8457
commit 9603905d1d
+1 -1
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 }>