Skip to content

Commit

Permalink
chore: correct rabbit ai feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Apr 11, 2024
1 parent b961d22 commit 2d11d62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/masterbots.ai/components/shared/thread-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export function ThreadList({
if (!loadMoreRef.current) return
const observer = new IntersectionObserver(([entry]) => {
if (entry.isIntersecting && !threads.isLoading) {
setTimeout(() => threads.refetch(), 150)
// NOTE: I think this is not required
// setTimeout(() => threads.refetch(), 150)
threads.refetch()
observer.unobserve(entry.target)
}
})
Expand All @@ -65,9 +67,9 @@ export function ThreadList({
key={queryKey[0]}
className="flex flex-col w-full gap-8 py-5"
>
{threads.data.map((thread: Thread, key) => (
{threads.data.map((thread: Thread) => (
<ThreadComponent
key={key}
key={thread.threadId}
thread={thread}
chat={chat}
defaultOpen={thread.threadId === currentThread?.threadId}
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 2d11d62

Please sign in to comment.