Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 闪卡预览的下一页可以一直点击 https://github.com/siyuan-note/siyuan/issues/7173

Liang Ding3432320112de
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index bd83bead1d..a2cbc74975 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -58,7 +58,7 @@ func GetFlashcards(deckID string, page int) (blocks []*Block, total, pageCount i
start := (page - 1) * pageSize
end := page * pageSize
if start > len(allBlockIDs) {
- return
+ start = len(allBlockIDs)
}
if end > len(allBlockIDs) {
end = len(allBlockIDs)