mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -182,6 +182,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
debounceTimeout = setTimeout(async () => {
|
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, {
|
const res = await updateKnowledgeById(localStorage.token, id, {
|
||||||
name: knowledge.name,
|
name: knowledge.name,
|
||||||
description: knowledge.description
|
description: knowledge.description
|
||||||
|
|||||||
Reference in New Issue
Block a user