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