From 4a9efaf7da2e610612b1c1db2d49181427d690c5 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sun, 2 Apr 2023 00:04:21 +0800 Subject: [PATCH] fix: chat filter --- src/components/Menu/ChatHistoryList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Menu/ChatHistoryList.tsx b/src/components/Menu/ChatHistoryList.tsx index eaa0a44..8fb0569 100644 --- a/src/components/Menu/ChatHistoryList.tsx +++ b/src/components/Menu/ChatHistoryList.tsx @@ -44,7 +44,7 @@ const ChatHistoryList = () => { if ( !chat.title.toLocaleLowerCase().includes(filterLowerCase) && !chat.folder?.toLowerCase().includes(filterLowerCase) && - index !== currentChatIndex + index !== useStore.getState().currentChatIndex ) return;