浏览代码

: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
 					}
 				}
+				if "" == deckID {
+					continue
+				}
 				resetFlashcards(deckID, blockIDs)
 			}
 			return