diff --git a/src/lib/components/workspace/Knowledge/Collection.svelte b/src/lib/components/workspace/Knowledge/Collection.svelte index 42f07d71e..178ce0219 100644 --- a/src/lib/components/workspace/Knowledge/Collection.svelte +++ b/src/lib/components/workspace/Knowledge/Collection.svelte @@ -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