Skip to content

Commit a7a50b8

Browse files
author
daniel-smartbear
committed
slight changes to header code
1 parent 00a059b commit a7a50b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/components/headers.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ export default class Headers extends React.Component {
3636
if(!Im.Map.isMap(header)) {
3737
return null
3838
}
39+
const type = header.getIn(["schema", "type"])
40+
const schemaExample = header.getIn(["schema", "example"])
41+
3942
return (<tr key={ key }>
4043
<td className="header-col">{ key }</td>
4144
<td className="header-col">{ header.get( "description" ) }</td>
42-
<td className="header-col">{ header.get( "schema" ).get( "type" ) } { header.get( "schema" ).get( "example" ) ? <Property propKey={ "Example" } propVal={ header.get( "schema" ).get( "example" ) } propStyle={ propStyle } /> : null }</td>
45+
<td className="header-col">{ type } { schemaExample ? <Property propKey={ "Example" } propVal={ schemaExample } propStyle={ propStyle } /> : null }</td>
4346
</tr>)
4447
}).toArray()
4548
}

0 commit comments

Comments
 (0)