Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug:

Vanessab17aff577300
diff --git a/app/src/layout/status.ts b/app/src/layout/status.ts
index 6a63657f6c..951016fe03 100644
--- a/app/src/layout/status.ts
+++ b/app/src/layout/status.ts
@@ -195,6 +195,9 @@ export const renderStatusbarCounter = (stat: {
imageCount: number,
refCount: number
}) => {
+ if(!stat) {
+ return;
+ }
let html = `<span class="ft__on-surface">${window.siyuan.languages.runeCount}</span>&nbsp;${stat.runeCount}<span class="fn__space"></span>
<span class="ft__on-surface">${window.siyuan.languages.wordCount}</span>&nbsp;${stat.wordCount}<span class="fn__space"></span>`;
if (0 < stat.linkCount) {