File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments