mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(editor): Don't reset all Parameter Inputs when switched to read-only (#12063)
This commit is contained in:
parent
3ca85217de
commit
728dba26c9
|
@ -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 });
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue