We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a5d7c commit fbde76aCopy full SHA for fbde76a
frontend/src/pages/Chat/components/InputField.tsx
@@ -63,8 +63,10 @@ export default function InputField({
63
// Update only the bot's message
64
setMessages((prev) =>
65
prev.map((msg) =>
66
- msg.messageId === botMessageId ? { ...msg, content: fullText } : msg
67
- )
+ msg.messageId === botMessageId
+ ? { ...msg, content: fullText }
68
+ : msg,
69
+ ),
70
);
71
}
72
} catch (error) {
@@ -76,8 +78,8 @@ export default function InputField({
76
78
...msg,
77
79
content: "Sorry, I encountered an error. Please try again.",
80
- : msg
81
82
83
84
} finally {
85
setIsLoading(false);
0 commit comments