From 9c3d23b562b859391f9ed5e951687c0e297a0567 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 5 Jan 2021 18:34:48 +0100 Subject: [PATCH] Make clipboard's `pageObjectId` optional --- .../files/ts/WoltLabSuite/Core/Controller/Clipboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); /** -- 2.20.1