mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix(channel): allow sending image-only messages without text (#22752)
This commit is contained in:
parent
3107a5363d
commit
b062235d0c
1 changed files with 1 additions and 1 deletions
|
|
@ -925,7 +925,7 @@
|
|||
}
|
||||
|
||||
// Submit the content when Enter key is pressed
|
||||
if (content !== '' && e.keyCode === 13 && !e.shiftKey) {
|
||||
if ((content !== '' || files.length > 0) && e.keyCode === 13 && !e.shiftKey) {
|
||||
submitHandler();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue