mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-22 17:25:25 +00:00
Reformat
This commit is contained in:
parent
3e576ae6d5
commit
aaef7538b2
1 changed files with 6 additions and 6 deletions
|
|
@ -199,12 +199,12 @@
|
|||
toast.warning(uploadedFile.error);
|
||||
knowledge.files = knowledge.files.filter((file) => file.id !== uploadedFile.id);
|
||||
} else {
|
||||
if (syncMode) {
|
||||
await syncFileHandler(uploadedFile.id);
|
||||
} else {
|
||||
await addFileHandler(uploadedFile.id);
|
||||
}
|
||||
}
|
||||
if (syncMode) {
|
||||
await syncFileHandler(uploadedFile.id);
|
||||
} else {
|
||||
await addFileHandler(uploadedFile.id);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
toast.error($i18n.t('Failed to upload file.'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue