mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-30 19:21:32 -07:00
fix(stats): fall back to Default deck when deck config is blank
- Trim deck name before checking falsy so empty string uses Default - Add fake AnkiConnect server helper and regression test for blank deck
This commit is contained in:
@@ -1101,7 +1101,7 @@ export function createStatsApp(
|
||||
}
|
||||
|
||||
const model = ankiConfig.isLapis?.sentenceCardModel || 'Basic';
|
||||
const deck = ankiConfig.deck ?? 'Default';
|
||||
const deck = ankiConfig.deck?.trim() || 'Default';
|
||||
const tags = ankiConfig.tags ?? ['SubMiner'];
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user