From 28f384aada699433ed099f6b5d630ee95f0a609e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 10 Mar 2024 17:15:39 +0100 Subject: [PATCH] refactor: cleanup debug code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/UIProtocol.ts | 7 ------- src/utils/Utils.ts | 6 +++++- ui/web/src/composables/UIClient.ts | 2 -- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/types/UIProtocol.ts b/src/types/UIProtocol.ts index 00d93931..b5cf30ff 100644 --- a/src/types/UIProtocol.ts +++ b/src/types/UIProtocol.ts @@ -79,10 +79,3 @@ export interface ResponsePayload extends JsonObject { hashIdsFailed?: string[] responsesFailed?: BroadcastChannelResponsePayload[] } - -export interface TemplateStatistics extends JsonObject { - configured: number - added: number - started: number - indexes: number[] -} diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index fd3f4e2b..32bac44d 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -300,7 +300,11 @@ export const secureRandom = (): number => { } export const JSONStringify = < - T extends JsonType | Array> | Map> + T extends + | JsonType + | Array> + | Set> + | Map> >( object: T, space?: string | number, diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index fcbf191f..c2b9d60c 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -253,8 +253,6 @@ export class UIClient { const [uuid, responsePayload] = response - console.log('responsePayload', responsePayload.state?.templateStatistics) - if (this.responseHandlers.has(uuid)) { const { procedureName, resolve, reject } = this.responseHandlers.get(uuid)! switch (responsePayload.status) { -- 2.34.1