Skip to content

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

:lipstick:

Vanessaeb2b45b175fb
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index e6e9950918..a56765db29 100644
--- a/app/src/card/openCard.ts
+++ b/app/src/card/openCard.ts
@@ -315,7 +315,9 @@ export const bindCardEvent = async (options: {
fetchNewRound();
},
}).element);
- window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+ if (response.data.length > 0) {
+ window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+ }
}
response.data.forEach((deck: { id: string, name: string }) => {
window.siyuan.menus.menu.append(new MenuItem({