Fix default_deck_for_notetype handling

This commit is contained in:
Abdo 2025-08-27 02:32:42 +03:00
parent 800144dc67
commit 8b144ca238
2 changed files with 2 additions and 1 deletions

View file

@ -974,6 +974,7 @@ exposed_backend_list = [
"new_note",
"note_fields_check",
"defaults_for_adding",
"default_deck_for_notetype",
# NotetypesService
"get_notetype",
"get_notetype_names",

View file

@ -309,7 +309,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
if (
!(await getConfigBool({
key: ConfigKey_Bool.ADDING_DEFAULTS_TO_CURRENT_DECK,
}))
})).val
) {
const deckId = await defaultDeckForNotetype({ ntid: notetype.id });
deckChooser.select(deckId.did);