diff --git a/new-log-viewer/src/contexts/StateContextProvider.tsx b/new-log-viewer/src/contexts/StateContextProvider.tsx index 89a29b66..832f7e90 100644 --- a/new-log-viewer/src/contexts/StateContextProvider.tsx +++ b/new-log-viewer/src/contexts/StateContextProvider.tsx @@ -161,7 +161,6 @@ const StateContextProvider = ({children}: StateContextProviderProps) => { switch (code) { case WORKER_RESP_CODE.CHUNK_DATA: receivedNumChunksRef.current += 1; - console.log(receivedNumChunksRef.current, args.logs); // If all chunks are received, trigger the download of the file if (numChunks === receivedNumChunksRef.current) { diff --git a/new-log-viewer/src/services/LogFileManager.ts b/new-log-viewer/src/services/LogFileManager.ts index 176973c8..90d73e69 100644 --- a/new-log-viewer/src/services/LogFileManager.ts +++ b/new-log-viewer/src/services/LogFileManager.ts @@ -166,11 +166,7 @@ class LogFileManager { `eventIdx=${eventIdx});`); } - const messages: string[] = []; - results.forEach((r) => { - const [msg] = r; - messages.push(msg); - }); + const messages = results.map(([msg]) => msg); return { logs: messages.join(""), diff --git a/new-log-viewer/src/services/MainWorker.ts b/new-log-viewer/src/services/MainWorker.ts index 3f8bc351..51f1b1fd 100644 --- a/new-log-viewer/src/services/MainWorker.ts +++ b/new-log-viewer/src/services/MainWorker.ts @@ -18,7 +18,6 @@ dayjs.extend(dayjsUtc); dayjs.extend(dayjsTimezone); /* eslint-enable import/no-named-as-default-member */ - /** * Manager for the currently opened log file. */