Browse Source

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

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

+ 3 - 3
kernel/model/flashcard.go

@@ -54,10 +54,10 @@ func ResetFlashcards(typ, id, deckID string, blockIDs []string) {
 				}
 				resetFlashcards(deckID, blockIDs)
 			}
-			deckID = builtinDeckID
-		} else {
-			resetFlashcards(deckID, blockIDs)
+			return
 		}
+
+		resetFlashcards(deckID, blockIDs)
 		return
 	}