mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Fix initial=True being passed to subsequent loadNote calls
This commit is contained in:
parent
789b0a702e
commit
12769460ba
1 changed files with 2 additions and 2 deletions
|
|
@ -1209,10 +1209,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
async function loadNote(args: Partial<LoadNoteArgs>) {
|
||||
if (args.initial) {
|
||||
initialLoadArgs = args;
|
||||
initialLoadArgs = {...args, initial: false};
|
||||
}
|
||||
if (typeof args.focusTo === "undefined") {
|
||||
args.focusTo = focusedFieldIndex;
|
||||
args = {...args, focusTo: focusedFieldIndex};
|
||||
}
|
||||
loadDebouncer.schedule(async () => {
|
||||
await loadNoteInner(
|
||||
|
|
|
|||
Loading…
Reference in a new issue