fix(core): RMC boolean value fix (#6397)

This commit is contained in:
Michael Kret 2023-06-07 13:01:19 +03:00 committed by GitHub
parent cc37f21aa2
commit 28bb797bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}