fix(editor): Don't reset all Parameter Inputs when switched to read-only (#12063)

This commit is contained in:
Charlie Kolb 2024-12-05 12:20:12 +01:00 committed by Iván Ovejero
parent 3ca85217de
commit 728dba26c9
No known key found for this signature in database

View file

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