Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9561#issuecomment-1794473512

Vanessab6b18430b568
diff --git a/app/src/card/newCardTab.ts b/app/src/card/newCardTab.ts
index 0bbddec9ae..b98f8668aa 100644
--- a/app/src/card/newCardTab.ts
+++ b/app/src/card/newCardTab.ts
@@ -13,6 +13,8 @@ export const newCardModel = (options: {
cardType: TCardType,
id: string,
title?: string
+ blocks?: ICard[],
+ index?: number,
}
}) => {
let editor: Protyle;
@@ -40,6 +42,9 @@ export const newCardModel = (options: {
index: options.data.index,
});
this.data.editor = editor;
+ // https://github.com/siyuan-note/siyuan/issues/9561#issuecomment-1794473512
+ delete options.data.blocks;
+ delete options.data.index;
} else {
fetchPost(this.data.cardType === "all" ? "/api/riff/getRiffDueCards" :
(this.data.cardType === "doc" ? "/api/riff/getTreeRiffDueCards" : "/api/riff/getNotebookRiffDueCards"), {