From: Matthias Schmidt Date: Tue, 5 Jan 2021 17:34:48 +0000 (+0100) Subject: Make clipboard's `pageObjectId` optional X-Git-Tag: 5.4.0_Alpha_1~461^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c3d23b562b859391f9ed5e951687c0e297a0567;p=GitHub%2FWoltLab%2FWCF.git Make clipboard's `pageObjectId` optional --- diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Controller/Clipboard.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Controller/Clipboard.ts index 5806eda374..7d09992357 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Controller/Clipboard.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Controller/Clipboard.ts @@ -22,7 +22,7 @@ import * as UiScreen from "../Ui/Screen"; interface ClipboardOptions { hasMarkedItems: boolean; pageClassName: string; - pageObjectId: number; + pageObjectId?: number; } interface ContainerData { @@ -78,7 +78,7 @@ class ControllerClipboard { private itemData = new WeakMap(); private readonly knownCheckboxes = new WeakSet(); private readonly pageClassNames: string[] = []; - private pageObjectId = 0; + private pageObjectId? = 0; private readonly reloadPageOnSuccess = new Map(); /**