diff --git a/ts/routes/card-info/forgetting-curve.ts b/ts/routes/card-info/forgetting-curve.ts index b5c71b761..8287caabd 100644 --- a/ts/routes/card-info/forgetting-curve.ts +++ b/ts/routes/card-info/forgetting-curve.ts @@ -73,7 +73,8 @@ export function prepareData(revlog: RevlogEntry[], maxDays: number) { let daysSinceFirstLearn = 0; revlog - .toReversed() + .slice() + .reverse() .forEach((entry, index) => { const reviewTime = Number(entry.time); if (index === 0) {