satof3 6 месяцев назад
Родитель
Сommit
6354eb93d4

+ 2 - 2
apps/app/src/features/openai/client/services/knowledge-assistant.tsx

@@ -62,7 +62,7 @@ type UseKnowledgeAssistant = () => {
   form: UseFormReturn<FormData>
   resetForm: () => void
   handleBackToInitialView: () => void;
-  threadTitleView: JSX.Element | null;
+  threadTitleView: JSX.Element
 
   // Views
   initialView: JSX.Element
@@ -240,7 +240,7 @@ export const useKnowledgeAssistant: UseKnowledgeAssistant = () => {
     const { threadData } = aiAssistantSidebarData ?? {};
 
     if (threadData?.title == null) {
-      return null;
+      return <></>;
     }
 
     return (