fix(editor): Correctly compare old parameter value for nested parameters (#13179)

This commit is contained in:
Elias Meire 2025-02-11 18:08:55 +01:00 committed by GitHub
parent 90d6f0020c
commit b6c0d96e43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -814,9 +814,7 @@ function valueChanged(value: NodeParameterValueType | {} | Date) {
return; return;
} }
// Only update the value if it has changed // Only update the value if it has changed
const oldValue = node.value?.parameters const oldValue = get(node.value, props.path);
? nodeHelpers.getParameterValue(node.value?.parameters, props.parameter.name, '')
: undefined;
if (oldValue !== undefined && oldValue === value) { if (oldValue !== undefined && oldValue === value) {
return; return;
} }