Skip to content

Commit

Permalink
fix : enum has null value, it will be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
bejewel-kyoungmin committed May 7, 2024
1 parent 299f575 commit 969441f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/plugins/json-schema-5/components/enum-model.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const EnumModel = ({ value, getComponent }) => {
return <span className="prop-enum">
Enum:<br />
<ModelCollapse collapsedContent={ collapsedContent }>
[ { value.map((v) => v === null ? "null" : v).join(", ") } ]
[ { value.map(String).join(", ") } ]
</ModelCollapse>
</span>
}
Expand Down

0 comments on commit 969441f

Please sign in to comment.