Remove an unnecessary assertion
authorAlexander Ebert <ebert@woltlab.com>
Tue, 12 Mar 2024 15:48:18 +0000 (16:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 12 Mar 2024 15:48:18 +0000 (16:48 +0100)
ts/WoltLabSuite/Core/Controller/Clipboard.ts

index 3f9d438fdceb6b947ad2004bee17b79d20e0e20a..f01d37f832d73dbd157bd960c219e9a76211ffd9 100644 (file)
@@ -412,7 +412,7 @@ class ControllerClipboard {
     this.reloadPageOnSuccess.clear();
 
     // rebuild markings
-    const markings = Core.isPlainObject(data.returnValues.markedItems) ? data.returnValues.markedItems! : {};
+    const markings = Core.isPlainObject(data.returnValues.markedItems) ? data.returnValues.markedItems : {};
     this.containers.forEach((containerData) => {
       const typeName = containerData.element.dataset.type!;