From b17aff577300a63cf77f63e2a9665cc0a2692f1e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 11 Oct 2023 23:54:40 +0800 Subject: [PATCH] :bug: --- app/src/layout/status.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/layout/status.ts b/app/src/layout/status.ts index 6a63657f6..951016fe0 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 = `${window.siyuan.languages.runeCount} ${stat.runeCount} ${window.siyuan.languages.wordCount} ${stat.wordCount}`; if (0 < stat.linkCount) {