We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c72c476 commit c664e39Copy full SHA for c664e39
src/core/components/object-model.jsx
@@ -31,9 +31,10 @@ export default class ObjectModel extends Component {
31
const Model = getComponent("Model")
32
const ModelCollapse = getComponent("ModelCollapse")
33
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>
+ const JumpToPathSection = ({ name }) => {
+ const path = isOAS3 && isOAS3() ? `components.schemas.${name}` : `definitions.${name}`
+ return <span className="model-jump-to-path"><JumpToPath path={path} /></span>
37
+ }
38
const collapsedContent = (<span>
39
<span>{ braceOpen }</span>...<span>{ braceClose }</span>
40
{
0 commit comments