From 3887f769febc216d47b9e6a82da030697cd5224c Mon Sep 17 00:00:00 2001 From: Kirk Rodrigues <2454684+kirkrodrigues@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:51:37 -0400 Subject: [PATCH 1/2] Remove log. --- new-log-viewer/src/contexts/StateContextProvider.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/new-log-viewer/src/contexts/StateContextProvider.tsx b/new-log-viewer/src/contexts/StateContextProvider.tsx index 33c24444..e5b03a9f 100644 --- a/new-log-viewer/src/contexts/StateContextProvider.tsx +++ b/new-log-viewer/src/contexts/StateContextProvider.tsx @@ -316,8 +316,6 @@ const StateContextProvider = ({children}: StateContextProviderProps) => { // On `logEventNum` update, clamp it then switch page if necessary or simply update the URL. useEffect(() => { if (null === mainWorkerRef.current) { - console.error("Unexpected null mainWorkerRef.current"); - return; } From 808a7e12ea56047b0e91831edb60b4228e54e383 Mon Sep 17 00:00:00 2001 From: Kirk Rodrigues <2454684+kirkrodrigues@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:58:36 -0400 Subject: [PATCH 2/2] Remove extra newline. --- new-log-viewer/src/contexts/StateContextProvider.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/new-log-viewer/src/contexts/StateContextProvider.tsx b/new-log-viewer/src/contexts/StateContextProvider.tsx index e5b03a9f..797c8463 100644 --- a/new-log-viewer/src/contexts/StateContextProvider.tsx +++ b/new-log-viewer/src/contexts/StateContextProvider.tsx @@ -283,7 +283,6 @@ const StateContextProvider = ({children}: StateContextProviderProps) => { handleMainWorkerResp, ]); - const loadPageByAction = useCallback((navAction: NavigationAction) => { if (null === mainWorkerRef.current) { console.error("Unexpected null mainWorkerRef.current");