From 97e32426d1500ae0a740306053cd4988276f2a34 Mon Sep 17 00:00:00 2001 From: aliang Date: Fri, 22 Nov 2024 22:33:07 +0700 Subject: [PATCH] fix(ui): fix the flickering issue with the input box in Answer Engine (#3453) --- ee/tabby-ui/app/search/components/search.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ee/tabby-ui/app/search/components/search.tsx b/ee/tabby-ui/app/search/components/search.tsx index 5c65abf69ed8..651a83ffae21 100644 --- a/ee/tabby-ui/app/search/components/search.tsx +++ b/ee/tabby-ui/app/search/components/search.tsx @@ -255,11 +255,11 @@ export function Search() { }, [threadMessages]) const isThreadOwner = useMemo(() => { - if (!threadId) return true + if (!meData) return false + if (!threadIdFromURL) return true - if (!meData || !threadData?.threads?.edges?.length) return false - return meData.me.id === threadData.threads.edges[0].node.userId - }, [meData, threadData, threadId]) + return meData.me.id === threadData?.threads.edges[0].node.userId + }, [meData, threadData, threadIdFromURL]) // Compute title const sources = contextInfoData?.contextInfo.sources