Remove radix parameter from `parseInt`
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 3 Jul 2024 07:41:19 +0000 (09:41 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 3 Jul 2024 07:41:19 +0000 (09:41 +0200)
ts/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.js

index 0aceec393db18599d432e151183fc1bca5cd146e..6fb09a87372577ac34957bb7fabb8d09bd7042d6 100644 (file)
@@ -288,12 +288,12 @@ export class FileProcessor {
         return undefined;
       }
 
-      return parseInt(input.value, 10);
+      return parseInt(input.value);
     }
 
     return new Set(
       Array.from(this.#container.querySelectorAll<HTMLInputElement>('input[type="hidden"]')).map((input) =>
-        parseInt(input.value, 10),
+        parseInt(input.value),
       ),
     );
   }
index 82b3bb4194b0db5a79c3daaa51b6afe69aadfc36..7d93d1d07a94b3a999ac5eccc8c6fed17b2a60c5 100644 (file)
@@ -233,9 +233,9 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Language", "WoltLabSui
                 if (input === null) {
                     return undefined;
                 }
-                return parseInt(input.value, 10);
+                return parseInt(input.value);
             }
-            return new Set(Array.from(this.#container.querySelectorAll('input[type="hidden"]')).map((input) => parseInt(input.value, 10)));
+            return new Set(Array.from(this.#container.querySelectorAll('input[type="hidden"]')).map((input) => parseInt(input.value)));
         }
     }
     exports.FileProcessor = FileProcessor;