Skip to content

Commit

Permalink
fix(core): RMC boolean value fix (#6397)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Jun 7, 2023
1 parent cc37f21 commit 28bb797
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ function getFieldDescription(field: ResourceMapperField): string {
function getParameterValue(parameterName: string): string | number | boolean | null {
const fieldName = parseResourceMapperFieldName(parameterName);
if (fieldName && props.paramValue.value) {
return props.paramValue.value[fieldName] || '';
if (
props.paramValue.value[fieldName] === undefined ||
props.paramValue.value[fieldName] === null
) {
return '';
}
return props.paramValue.value[fieldName];
}
return null;
}
Expand Down

0 comments on commit 28bb797

Please sign in to comment.