Explorar o código

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

Daniel hai 1 ano
pai
achega
c4174ea191
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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
 	}