diff --git a/ts/change-notetype/MapperRow.svelte b/ts/change-notetype/MapperRow.svelte index 55d0f32b9..a0563fa54 100644 --- a/ts/change-notetype/MapperRow.svelte +++ b/ts/change-notetype/MapperRow.svelte @@ -21,29 +21,34 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html current = oldNames[newIndex] || tr.changeNotetypeNothing(); } - function onChange(evt: Event) { - const oldIdx = parseInt((evt.target as HTMLSelectElement).value, 10); - state.setOldIndex(ctx, newIndex, oldIdx); - } - // optimization for big notetypes let active: boolean = false; function activate(evt: Event) { active = true; } + + function onChange(evt: Event) { + const oldIdx = parseInt((evt.target as HTMLSelectElement).value, 10); + state.setOldIndex(ctx, newIndex, oldIdx); + }