Skip to content

Commit

Permalink
fix(components): render parameter extensions in the description column (
Browse files Browse the repository at this point in the history
#9883)

Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com>
  • Loading branch information
jrossignol and glowcloud authored May 7, 2024
1 parent 0dd9afa commit 1367a8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/components/parameter-row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ export default class ParameterRow extends Component {
{ isOAS3 && param.get("deprecated") ? "deprecated": null }
</div>
<div className="parameter__in">({ param.get("in") })</div>
{ !showCommonExtensions || !commonExt.size ? null : commonExt.entrySeq().map(([key, v]) => <ParameterExt key={`${key}-${v}`} xKey={key} xVal={v} /> )}
{ !showExtensions || !extensions.size ? null : extensions.entrySeq().map(([key, v]) => <ParameterExt key={`${key}-${v}`} xKey={key} xVal={v} /> )}
</td>

<td className="parameters-col_description">
Expand Down Expand Up @@ -374,6 +372,9 @@ export default class ParameterRow extends Component {
) : null
}

{ !showCommonExtensions || !commonExt.size ? null : commonExt.entrySeq().map(([key, v]) => <ParameterExt key={`${key}-${v}`} xKey={key} xVal={v} /> )}
{ !showExtensions || !extensions.size ? null : extensions.entrySeq().map(([key, v]) => <ParameterExt key={`${key}-${v}`} xKey={key} xVal={v} /> )}

</td>

</tr>
Expand Down

0 comments on commit 1367a8f

Please sign in to comment.