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 GitHub
parent 2e979547a4
commit 706702dff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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