diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index e0919b3e8..3542d9dd0 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -402,6 +402,7 @@ func GetTreeDueFlashcards(rootID string, reviewedCardIDs []string) (ret []*Flash } func getTreeSubTreeChildBlocks(rootID string) (treeBlockIDsMap map[string]bool, treeBlockIDs []string) { + treeBlockIDsMap = map[string]bool{} root := treenode.GetBlockTree(rootID) if nil == root { return