🎨 Spaced repetition interface supports review by document selection https://github.com/siyuan-note/siyuan/issues/7954

This commit is contained in:
Liang Ding 2023-04-14 16:36:04 +08:00
parent 4529221ab2
commit 862d0db037
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -147,7 +147,7 @@ func SearchDocsByKeyword(keyword string, flashcard bool) (ret []map[string]strin
var deckBlockIDs []string
if flashcard {
deck := Decks[builtinDeckID]
if nil != deck {
if nil == deck {
return
}
deckBlockIDs = deck.GetBlockIDs()
@ -232,7 +232,7 @@ func ListDocTree(boxID, path string, sortMode int, flashcard bool, maxListCount
var deckBlockIDs []string
if flashcard {
deck := Decks[builtinDeckID]
if nil != deck {
if nil == deck {
return
}
deckBlockIDs = deck.GetBlockIDs()