Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 闪卡复习了后,最后一个卡片点良好什么的按钮就会返回显示答案这个操作,不会显示已完成复习啥的

Vanessa50a1667c3dee
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index e74a76dd7c..6068af0846 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);