mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Don't reset all Parameter Inputs when switched to read-only (#12063)
This commit is contained in:
@@ -194,7 +194,8 @@ function onDrop(newParamValue: string) {
|
|||||||
watch(
|
watch(
|
||||||
() => props.isReadOnly,
|
() => props.isReadOnly,
|
||||||
(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 });
|
valueChanged({ name: props.path, value: props.parameter.default });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user