fix card info failing to load with qt5 (#3681)

This commit is contained in:
llama 2025-01-07 20:39:51 +08:00 committed by GitHub
parent ca6002fd58
commit 4ee6dacaa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,8 @@ export function prepareData(revlog: RevlogEntry[], maxDays: number) {
let daysSinceFirstLearn = 0; let daysSinceFirstLearn = 0;
revlog revlog
.toReversed() .slice()
.reverse()
.forEach((entry, index) => { .forEach((entry, index) => {
const reviewTime = Number(entry.time); const reviewTime = Number(entry.time);
if (index === 0) { if (index === 0) {