mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -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>) {
|
async function loadNote(args: Partial<LoadNoteArgs>) {
|
||||||
if (args.initial) {
|
if (args.initial) {
|
||||||
initialLoadArgs = args;
|
initialLoadArgs = {...args, initial: false};
|
||||||
}
|
}
|
||||||
if (typeof args.focusTo === "undefined") {
|
if (typeof args.focusTo === "undefined") {
|
||||||
args.focusTo = focusedFieldIndex;
|
args = {...args, focusTo: focusedFieldIndex};
|
||||||
}
|
}
|
||||||
loadDebouncer.schedule(async () => {
|
loadDebouncer.schedule(async () => {
|
||||||
await loadNoteInner(
|
await loadNoteInner(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue