Browse Source

:art: Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564

Daniel 1 year ago
parent
commit
f78c5ab3c8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/model/flashcard.go

+ 3 - 0
kernel/model/flashcard.go

@@ -52,6 +52,9 @@ func ResetFlashcards(typ, id, deckID string, blockIDs []string) {
 						break
 					}
 				}
+				if "" == deckID {
+					continue
+				}
 				resetFlashcards(deckID, blockIDs)
 			}
 			return