From b6b18430b568db799fc644a01991db10fe87b322 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 6 Nov 2023 18:19:27 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9561#issuecomment-1794473512 --- app/src/card/newCardTab.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/card/newCardTab.ts b/app/src/card/newCardTab.ts index 0bbddec9a..b98f8668a 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"), {