From 19fdc24a95fce3891ce8871d2c422a00fef59bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Mon, 20 Dec 2021 21:15:56 +0100 Subject: [PATCH] Update burgs-overview.js Updated the syntax to the one suggested by Azgaar. --- modules/ui/burgs-overview.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ui/burgs-overview.js b/modules/ui/burgs-overview.js index c93f393c..51b8d44d 100644 --- a/modules/ui/burgs-overview.js +++ b/modules/ui/burgs-overview.js @@ -565,11 +565,13 @@ function overviewBurgs() { burgsOverviewAddLines(); } function lockAllBurgs() { - pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = true})); + pack.burgs.forEach(burg => { + burg.lock = true;}); burgsOverviewAddLines(); } function unlockAllBurgs() { - pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = false})); + pack.burgs.forEach(burg => { + burg.lock = false;}); burgsOverviewAddLines(); } }