فهرست منبع

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

Daniel 1 سال پیش
والد
کامیت
f78c5ab3c8
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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
 						break
 					}
 					}
 				}
 				}
+				if "" == deckID {
+					continue
+				}
 				resetFlashcards(deckID, blockIDs)
 				resetFlashcards(deckID, blockIDs)
 			}
 			}
 			return
 			return