Skip to content

Commit c664e39

Browse files
authored
Update object-model.jsx
1 parent c72c476 commit c664e39

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/components/object-model.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export default class ObjectModel extends Component {
3131
const Model = getComponent("Model")
3232
const ModelCollapse = getComponent("ModelCollapse")
3333

34-
const path = isOAS3 && isOAS3() ? `components.schemas.${name}` : `definitions.${name}`
35-
36-
const JumpToPathSection = ({ name }) => <span className="model-jump-to-path"><JumpToPath path={path} /></span>
34+
const JumpToPathSection = ({ name }) => {
35+
const path = isOAS3 && isOAS3() ? `components.schemas.${name}` : `definitions.${name}`
36+
return <span className="model-jump-to-path"><JumpToPath path={path} /></span>
37+
}
3738
const collapsedContent = (<span>
3839
<span>{ braceOpen }</span>...<span>{ braceClose }</span>
3940
{

0 commit comments

Comments
 (0)