From 0520862e88799ec035166911a2cfefaa2c7f6a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 7 Apr 2026 18:54:39 +0200 Subject: [PATCH] Remove the implicit undefined return when computing the fields to update Closes #14751 (grafted from 0c5f6bfcd70da379ffea74f44ceaa84ccc97f103) --HG-- branch : 6.0 --- sao/src/model.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sao/src/model.js b/sao/src/model.js index b7ddec30b1..de84b9d646 100644 --- a/sao/src/model.js +++ b/sao/src/model.js @@ -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); }