Просмотр исходного кода

Remove suspense option from useSWRINFxRecentThreads in ThreadList component

Shun Miyazawa 9 месяцев назад
Родитель
Сommit
274c48ac66

+ 1 - 1
apps/app/src/features/openai/client/components/AiAssistant/Sidebar/ThreadList.tsx

@@ -15,7 +15,7 @@ import { useAiAssistantSidebar } from '../../../stores/ai-assistant';
 const logger = loggerFactory('growi:openai:client:components:ThreadList');
 
 export const ThreadList: React.FC = () => {
-  const swrInifiniteThreads = useSWRINFxRecentThreads({ suspense: true });
+  const swrInifiniteThreads = useSWRINFxRecentThreads();
   const { t } = useTranslation();
   const { data, mutate } = swrInifiniteThreads;
   const { openChat } = useAiAssistantSidebar();