Skip to content

Commit 9603905

Browse files
author
daniel-smartbear
committed
fix for swagger-2 header type not showing
1 parent a7a50b8 commit 9603905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/headers.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class Headers extends React.Component {
3636
if(!Im.Map.isMap(header)) {
3737
return null
3838
}
39-
const type = header.getIn(["schema", "type"])
39+
const type = header.getIn(["schema"]) ? header.getIn(["schema", "type"]) : header.getIn(["type"])
4040
const schemaExample = header.getIn(["schema", "example"])
4141

4242
return (<tr key={ key }>

0 commit comments

Comments
 (0)