Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : enum has null value, it will be shown #9683

Merged
4 changes: 2 additions & 2 deletions src/core/components/enum-model.jsx
Expand Up @@ -7,7 +7,7 @@ const EnumModel = ({ value, getComponent }) => {
return <span className="prop-enum">
Enum:<br />
<ModelCollapse collapsedContent={ collapsedContent }>
[ { value.join(", ") } ]
[ { value.map((v) => v === null ? "null" : v).join(", ") } ]
char0n marked this conversation as resolved.
Show resolved Hide resolved
</ModelCollapse>
</span>
}
Expand All @@ -16,4 +16,4 @@ EnumModel.propTypes = {
getComponent: ImPropTypes.func
}

export default EnumModel
export default EnumModel
2 changes: 1 addition & 1 deletion src/core/components/parameter-row.jsx
Expand Up @@ -295,7 +295,7 @@ export default class ParameterRow extends Component {
<Markdown className="parameter__enum" source={
"<i>Available values</i> : " + paramEnum.map(function(item) {
return item
}).toArray().join(", ")}/>
}).toArray().map((v) => v === null ? "null" : v).join(", ")}/>
bejewel-kyoungmin marked this conversation as resolved.
Show resolved Hide resolved
: null
}

Expand Down