From: Jérôme Benoit Date: Sun, 10 Mar 2024 16:15:39 +0000 (+0100) Subject: refactor: cleanup debug code X-Git-Tag: v1.3.0~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=28f384aada699433ed099f6b5d630ee95f0a609e;p=e-mobility-charging-stations-simulator.git refactor: cleanup debug code Signed-off-by: Jérôme Benoit --- 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) {