diff --git a/src/components/AIChatHistory/ListChatHistory.tsx b/src/components/AIChatHistory/ListChatHistory.tsx index b8d7b482f..599a1a0a3 100644 --- a/src/components/AIChatHistory/ListChatHistory.tsx +++ b/src/components/AIChatHistory/ListChatHistory.tsx @@ -9,6 +9,7 @@ import { Loader2Icon, PlusIcon, SearchIcon } from 'lucide-react'; import { DateTime } from 'luxon'; import { useEffect, useMemo, useState } from 'react'; import { useDebounceValue } from '../../hooks/use-debounce'; +import { ListChatHistorySkeleton } from './ListChatHistorySkeleton'; type ListChatHistoryProps = { activeChatHistoryId?: string; @@ -64,6 +65,10 @@ export function ListChatHistory(props: ListChatHistoryProps) { ); }, [data?.pages]); + if (isLoading) { + return ; + } + return (