From 728dba26c94cb026b26cdafc8d19a8f5ecd3135a Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Thu, 5 Dec 2024 12:20:12 +0100 Subject: [PATCH] fix(editor): Don't reset all Parameter Inputs when switched to read-only (#12063) --- packages/editor-ui/src/components/ParameterInputFull.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index 16b6c1321e..84b697f9da 100644 --- a/packages/editor-ui/src/components/ParameterInputFull.vue +++ b/packages/editor-ui/src/components/ParameterInputFull.vue @@ -194,7 +194,8 @@ function onDrop(newParamValue: string) { watch( () => props.isReadOnly, (isReadOnly) => { - if (isReadOnly) { + // Patch fix, see https://linear.app/n8n/issue/ADO-2974/resource-mapper-values-are-emptied-when-refreshing-the-columns + if (isReadOnly && props.parameter.disabledOptions !== undefined) { valueChanged({ name: props.path, value: props.parameter.default }); } },