An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: show error message only after last section in chat messages
Yoshiki Miurafc69609d4a20
diff --git a/components/chat-messages.tsx b/components/chat-messages.tsxindex d9e4e8a4..8ce12b12 100644--- a/components/chat-messages.tsx+++ b/components/chat-messages.tsx@@ -202,7 +202,9 @@ export function ChatMessages({/></div>))}- <ChatError error={error} />+ {sectionIndex === sections.length - 1 && (+ <ChatError error={error} />+ )}</div>))}</div>