From 4ee6dacaa32f4be7623381541b70142bb936c2cb Mon Sep 17 00:00:00 2001 From: llama <100429699+iamllama@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:39:51 +0800 Subject: [PATCH] fix card info failing to load with qt5 (#3681) --- ts/routes/card-info/forgetting-curve.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {