forked from React-Group/interstellar_ai
no empty msg
This commit is contained in:
parent
8821836f3d
commit
d037439b4c
1 changed files with 9 additions and 7 deletions
|
@ -113,6 +113,7 @@ const InputOutputBackend: React.FC = () => {
|
|||
setMessages(previous => [...previous,{role,content}])
|
||||
}
|
||||
const handleSendClick = (inputValue: string) => {
|
||||
if (inputValue != "") {
|
||||
if (sendable) {
|
||||
sendable=false
|
||||
if (postWorkerRef.current) {
|
||||
|
@ -123,6 +124,7 @@ const InputOutputBackend: React.FC = () => {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const handleMicClick = () => {
|
||||
// do stuff
|
||||
|
|
Loading…
Reference in a new issue