Fix question display logic when not streaming (#1931)

This commit is contained in:
Matt Rubens 2025-03-23 22:37:56 -04:00 • committed by GitHub
parent a866a1c271
commit f07c7e6f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,7 @@ export const ChatRowContent = ({
}, [message.ask, message.say, message.text])
const followUpData = useMemo(() => {
if (message.type === "ask" && message.ask === "followup" && message.partial === false) {
if (message.type === "ask" && message.ask === "followup" && !message.partial) {
return JSON.parse(message.text || "{}")
}
return null