Skip to content

Commit

Permalink
fix(ui): fix the flickering issue with the input box in Answer Engine (
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Nov 22, 2024
1 parent f264680 commit 97e3242
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ee/tabby-ui/app/search/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97e3242

Please sign in to comment.