From: Alexander Ebert Date: Tue, 6 Jul 2021 12:47:03 +0000 (+0200) Subject: Incorrect type cast to `number` X-Git-Tag: 5.4.0_RC_2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1deb5e68db13b6a8788e8b12900e9dc1bf0ba1ad;p=GitHub%2FWoltLab%2FWCF.git Incorrect type cast to `number` --- diff --git a/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts b/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts index 09e312bdc8..03a9545b79 100644 --- a/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts +++ b/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts @@ -147,7 +147,7 @@ export function init(handlers: Dictionary | Map): void { if (!(handlers instanceof Map)) { map = new Map(); handlers.forEach((value, key) => { - map.set(~~~key, value); + map.set(~~key, value); }); } else { map = handlers; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js index b6b10a1ab8..54ffddc827 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js @@ -113,7 +113,7 @@ define(["require", "exports", "tslib", "../../../../Dom/Util", "../../../../Lang if (!(handlers instanceof Map)) { map = new Map(); handlers.forEach((value, key) => { - map.set(~~~key, value); + map.set(~~key, value); }); } else {