瀏覽代碼

Show thread title

Shun Miyazawa 1 年之前
父節點
當前提交
161f44af04

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

@@ -47,7 +47,7 @@ const ThreadItem: React.FC<ThreadItemProps> = ({ thread, aiAssistantData, onThre
       </div>
       </div>
 
 
       <div className="grw-ai-assistant-title-anchor ps-1">
       <div className="grw-ai-assistant-title-anchor ps-1">
-        <p className="text-truncate m-auto">{thread.threadId}</p>
+        <p className="text-truncate m-auto">{thread?.title ?? 'Untitled Thread'}</p>
       </div>
       </div>
 
 
       <div className="grw-ai-assistant-actions opacity-0 d-flex justify-content-center ">
       <div className="grw-ai-assistant-actions opacity-0 d-flex justify-content-center ">