Remove the implicit undefined return when computing the fields to update

Closes #14751
(grafted from 0c5f6bfcd70da379ffea74f44ceaa84ccc97f103)

--HG--
branch : 6.0
This commit is contained in:
Nicolas Évrard
2026-04-07 18:54:39 +02:00
parent f0f817c84f
commit 0520862e88
+1 -4
View File
@@ -2441,10 +2441,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);
}