This commit is contained in:
parent
af93409a17
commit
b6b18430b5
1 changed files with 5 additions and 0 deletions
|
@ -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"), {
|
||||
|
|
Loading…
Add table
Reference in a new issue