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

This commit is contained in:
Liang Ding 2023-01-27 11:43:56 +08:00
parent 90516de22e
commit 3432320112
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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)