Skip to content

Commit

Permalink
fix(json-schema-5): allow collapsing for primitive models (#9639)
Browse files Browse the repository at this point in the history
Refs #9595
  • Loading branch information
dakkkshh authored May 8, 2024
1 parent 1367a8f commit 450bb99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Primitive extends Component {
</span>

return <span className="model">
<ModelCollapse title={titleEl} expanded={depth <= expandDepth} collapsedContent="[...]" hideSelfOnExpand={expandDepth !== depth}>
<ModelCollapse title={titleEl} expanded={depth <= expandDepth} collapsedContent="[...]">
<span className="prop">
{name && depth > 1 && <span className="prop-name">{title}</span>}
<span className="prop-type">{type}</span>
Expand Down

0 comments on commit 450bb99

Please sign in to comment.