From c05ab8e82eb4e1375b0703fc1bbb752a39e050d1 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 9 Dec 2024 15:03:34 -0800 Subject: [PATCH] fix merge error --- gui/src/components/Layout.tsx | 6 ------ gui/src/redux/slices/sessionSlice.ts | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index c873fba1a..b183e24e4 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -237,12 +237,6 @@ const Layout = () => { } }, [location]); - useEffect(() => { - if (isStreaming === false) { - saveSession(false); - } - }, [isStreaming]); - return ( diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 57821cc62..75a73af2b 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -379,6 +379,7 @@ export const sessionSlice = createSlice({ ) => { state.allSessionMetadata = payload; }, + ////////////////////////////////////////////////////////////////////////////////// // These are for optimistic session metadata updates, especially for History page addSessionMetadata: ( state,