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:
+1
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user