diff --git a/qt/aqt/browser/card_info.py b/qt/aqt/browser/card_info.py index 1aff13f10..08def5750 100644 --- a/qt/aqt/browser/card_info.py +++ b/qt/aqt/browser/card_info.py @@ -64,8 +64,7 @@ class CardInfoDialog(QDialog): self.setLayout(layout) self.web.eval( - "const cardInfo = anki.cardInfo(document.getElementById('main'));\n" - "cardInfo.then((c) => c.$set({ includeRevlog: true }));" + "const cardInfo = anki.cardInfo(document.getElementById('main'));" ) self.update_card(card_id) diff --git a/ts/card-info/CardInfo.svelte b/ts/card-info/CardInfo.svelte index 72a9a81aa..6dec99e15 100644 --- a/ts/card-info/CardInfo.svelte +++ b/ts/card-info/CardInfo.svelte @@ -10,7 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import Revlog from "./Revlog.svelte"; export let cardId: number | undefined = undefined; - export let includeRevlog: boolean | undefined = undefined; + export let includeRevlog: boolean = true; let stats: Stats.CardStatsResponse | undefined;