This commit is contained in:
Timothy J. Baek 2024-10-04 16:58:45 -07:00
parent ee6e41b144
commit f052010d8e

View File

@ -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