mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-03 23:25:21 +00:00
refac
This commit is contained in:
parent
97dae432ab
commit
3aad157006
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@
|
|||
};
|
||||
|
||||
const editMessageConfirmHandler = async (submit = true) => {
|
||||
if (!editedContent && editedFiles.length === 0) {
|
||||
if (!editedContent && (editedFiles ?? []).length === 0) {
|
||||
toast.error($i18n.t('Please enter a message or attach a file.'));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue