From 5abfec77b97c74f4553d3b71125713f702edf59e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 9 May 2023 10:39:01 +0800 Subject: [PATCH] :art: Show count in spaced repetition tree filter floating window https://github.com/siyuan-note/siyuan/issues/8202 --- kernel/model/flashcard.go | 1 + 1 file changed, 1 insertion(+) 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