refac
This commit is contained in:
1 parent
4f9a0ebf71
commit
1744b63f16
1 file changed
+9
-5
@@ -387,10 +387,12 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const knowledgeMetadataRes = await reindexKnowledgeMetadata(localStorage.token).catch((error) => {
|
const knowledgeMetadataRes = await reindexKnowledgeMetadata(localStorage.token).catch(
|
||||||
toast.error(`${error}`);
|
(error) => {
|
||||||
return null;
|
toast.error(`${error}`);
|
||||||
});
|
return null;
|
||||||
|
}
|
||||||
|
);
|
||||||
if (!knowledgeMetadataRes) {
|
if (!knowledgeMetadataRes) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1548,7 +1550,9 @@
|
|||||||
</AdminSettingRow>
|
</AdminSettingRow>
|
||||||
<AdminSettingRow
|
<AdminSettingRow
|
||||||
label={$i18n.t('Reindex Knowledge and Memory Vectors')}
|
label={$i18n.t('Reindex Knowledge and Memory Vectors')}
|
||||||
description={$i18n.t('Rebuild vectors for existing knowledge files, knowledge search, and memories.')}
|
description={$i18n.t(
|
||||||
|
'Rebuild vectors for existing knowledge files, knowledge search, and memories.'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class={actionButtonClass}
|
class={actionButtonClass}
|
||||||
|
|||||||
Reference in new issue
Block a user