mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve flashcard import https://github.com/siyuan-note/siyuan/issues/14402
This commit is contained in:
parent
9945ad7a7a
commit
b883f07cb4
2 changed files with 2 additions and 3 deletions
|
|
@ -936,8 +936,7 @@ func (tx *Transaction) doAddFlashcards(operation *Operation) (ret *TxErr) {
|
|||
continue
|
||||
}
|
||||
|
||||
cardID := ast.NewNodeID()
|
||||
deck.AddCard(cardID, blockID)
|
||||
deck.AddCard(ast.NewNodeID(), blockID)
|
||||
}
|
||||
|
||||
if err := deck.Save(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue