Remove the implicit undefined return when computing the fields to update

Closes #14751
This commit is contained in:
Nicolas Évrard
2026-04-07 18:54:39 +02:00
parent eb0cb933ef
commit 033e4326bf
+1 -4
View File
@@ -2573,10 +2573,7 @@
if (record2) {
let to_update = Object.fromEntries(
Object.entries(vals).filter(
([k, v]) => {
!Object.prototype.hasOwnProperty.call(
vals_to_set, k)
}
([k, v]) => !Object.hasOwn(vals_to_set, k)
));
record2.set_on_change(to_update);
}