mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
ee6e41b144
commit
f052010d8e
1 changed files with 5 additions and 0 deletions
|
|
@ -182,6 +182,11 @@
|
|||
}
|
||||
|
||||
debounceTimeout = setTimeout(async () => {
|
||||
if (knowledge.name.trim() === '' || knowledge.description.trim() === '') {
|
||||
toast.error($i18n.t('Please fill in all fields.'));
|
||||
return;
|
||||
}
|
||||
|
||||
const res = await updateKnowledgeById(localStorage.token, id, {
|
||||
name: knowledge.name,
|
||||
description: knowledge.description
|
||||
|
|
|
|||
Loading…
Reference in a new issue