refactor: Update ChatView component to handle empty messages and stream URLs
This commit is contained in:
parent
2cd0316506
commit
0b1453e56e
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export default function ChatView({
|
||||||
return {
|
return {
|
||||||
isSend: !is_ai,
|
isSend: !is_ai,
|
||||||
message:
|
message:
|
||||||
message === "" || !message ? EMPTY_INPUT_SEND_MESSAGE : message,
|
((message === "" || !message) && !stream_url) ? EMPTY_INPUT_SEND_MESSAGE : message,
|
||||||
sender_name,
|
sender_name,
|
||||||
componentId: output.id,
|
componentId: output.id,
|
||||||
stream_url: stream_url,
|
stream_url: stream_url,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue