From 5608161caa660f00536c7c36c24fe0a72012d0f0 Mon Sep 17 00:00:00 2001 From: Dave Marco Date: Thu, 12 Sep 2024 19:34:18 +0000 Subject: [PATCH] fix linter --- new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx | 1 + new-log-viewer/src/contexts/StateContextProvider.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx b/new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx index ebf39bc3..d69d7ccc 100644 --- a/new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx +++ b/new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx @@ -13,6 +13,7 @@ import { LOG_LEVEL_VALUES_LIST, } from "../../typings/logs"; + /** * Renders log level filter * diff --git a/new-log-viewer/src/contexts/StateContextProvider.tsx b/new-log-viewer/src/contexts/StateContextProvider.tsx index 2753d8c3..84e1e070 100644 --- a/new-log-viewer/src/contexts/StateContextProvider.tsx +++ b/new-log-viewer/src/contexts/StateContextProvider.tsx @@ -244,8 +244,8 @@ const StateContextProvider = ({children}: StateContextProviderProps) => { const loadPage = (newPageNum: number) => { if (null === mainWorkerRef.current) { - console.error("Unexpected null mainWorkerRef.current"); + return; } workerPostReq(mainWorkerRef.current, WORKER_REQ_CODE.LOAD_PAGE, {