From: Alexander Ebert Date: Tue, 12 Mar 2024 15:48:18 +0000 (+0100) Subject: Remove an unnecessary assertion X-Git-Tag: 6.1.0_Alpha_1~148^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cc83b3248098e407f6c4f0158cb74bb4870a6d5;p=GitHub%2FWoltLab%2FWCF.git Remove an unnecessary assertion --- diff --git a/ts/WoltLabSuite/Core/Controller/Clipboard.ts b/ts/WoltLabSuite/Core/Controller/Clipboard.ts index 3f9d438fdc..f01d37f832 100644 --- a/ts/WoltLabSuite/Core/Controller/Clipboard.ts +++ b/ts/WoltLabSuite/Core/Controller/Clipboard.ts @@ -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!;