From 50a1667c3dee2bde62ab2d56399dbd44e93d852c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 25 Dec 2023 00:34:16 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=97=AA=E5=8D=A1=E5=A4=8D=E4=B9=A0?= =?UTF-8?q?=E4=BA=86=E5=90=8E=EF=BC=8C=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E7=82=B9=E8=89=AF=E5=A5=BD=E4=BB=80=E4=B9=88?= =?UTF-8?q?=E7=9A=84=E6=8C=89=E9=92=AE=E5=B0=B1=E4=BC=9A=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=AD=94=E6=A1=88=E8=BF=99=E4=B8=AA=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=EF=BC=8C=E4=B8=8D=E4=BC=9A=E6=98=BE=E7=A4=BA=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=A4=8D=E4=B9=A0=E5=95=A5=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/card/openCard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index e74a76dd7..6068af084 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -197,7 +197,7 @@ export const bindCardEvent = (options: { notebook: filterElement.getAttribute("data-id"), }, (treeCards) => { index = 0; - options.cardsData.cards = treeCards.data.cards; + options.cardsData = treeCards.data; if (options.cardsData.unreviewedCount > 0) { nextCard({ countElement, @@ -411,7 +411,7 @@ export const bindCardEvent = (options: { reviewedCards: options.cardsData.cards }, (result) => { index = 0; - options.cardsData.cards = result.data.cards; + options.cardsData = result.data; if (options.cardsData.unreviewedCount === 0) { if (result.data.unreviewedCount > 0) { newRound(countElement, editor, actionElements, result.data.unreviewedCount);