Skip to content

Commit

Permalink
fix(editor): Don't reset all Parameter Inputs when switched to read-o…
Browse files Browse the repository at this point in the history
…nly (#12063)
  • Loading branch information
CharlieKolb authored Dec 5, 2024
1 parent 2e97954 commit 706702d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor-ui/src/components/ParameterInputFull.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
},
Expand Down

0 comments on commit 706702d

Please # to comment.