Skip to content

Commit

Permalink
fix(editor): Correctly compare old parameter value for nested paramet…
Browse files Browse the repository at this point in the history
…ers (#13179)
  • Loading branch information
elsmr authored Feb 11, 2025
1 parent 90d6f00 commit b6c0d96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/editor-ui/src/components/ParameterInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,7 @@ function valueChanged(value: NodeParameterValueType | {} | Date) {
return;
}
// Only update the value if it has changed
const oldValue = node.value?.parameters
? nodeHelpers.getParameterValue(node.value?.parameters, props.parameter.name, '')
: undefined;
const oldValue = get(node.value, props.path);
if (oldValue !== undefined && oldValue === value) {
return;
}
Expand Down

0 comments on commit b6c0d96

Please sign in to comment.