From 1deb5e68db13b6a8788e8b12900e9dc1bf0ba1ad Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jul 2021 14:47:03 +0200 Subject: [PATCH] Incorrect type cast to `number` --- ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts | 2 +- .../files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1