mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user