From 16f0ac11b21001f07d2775eb19b14b6aa9a0d7a4 Mon Sep 17 00:00:00 2001 From: Sophie Turner Date: Fri, 18 Oct 2024 00:18:26 +0500 Subject: [PATCH] fix(sid-bar): search text clears after click colllapsed button --- src/components/App/SideBar/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/App/SideBar/index.tsx b/src/components/App/SideBar/index.tsx index 6faa5ecb0..3de7630e0 100644 --- a/src/components/App/SideBar/index.tsx +++ b/src/components/App/SideBar/index.tsx @@ -20,7 +20,7 @@ type ContentProp = { // eslint-disable-next-line react/display-name const Content = forwardRef(({ subViewOpen }, ref) => { - const { setSidebarOpen, currentSearch: searchTerm, setSearchFormValue } = useAppStore((s) => s) + const { setSidebarOpen} = useAppStore((s) => s) const hasAiChats = useHasAiChats() @@ -32,7 +32,6 @@ const Content = forwardRef(({ subViewOpen }, ref) = { setSidebarOpen(false) - setSearchFormValue(searchTerm || '') }} > @@ -67,7 +66,7 @@ export const SideBar = () => { return ( <> - +