Skip to content

Commit 28bb797

Browse files
fix(core): RMC boolean value fix (n8n-io#6397)
1 parent cc37f21 commit 28bb797

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/editor-ui/src/components/ResourceMapper/MappingFields.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@ function getFieldDescription(field: ResourceMapperField): string {
189189
function getParameterValue(parameterName: string): string | number | boolean | null {
190190
const fieldName = parseResourceMapperFieldName(parameterName);
191191
if (fieldName && props.paramValue.value) {
192-
return props.paramValue.value[fieldName] || '';
192+
if (
193+
props.paramValue.value[fieldName] === undefined ||
194+
props.paramValue.value[fieldName] === null
195+
) {
196+
return '';
197+
}
198+
return props.paramValue.value[fieldName];
193199
}
194200
return null;
195201
}

0 commit comments

Comments
 (0)