From 7b86d5c606f0b59bf2b420252d756b50300503ac Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 24 Mar 2024 17:55:11 +0100 Subject: [PATCH] fix(import export modal): import not working !nuf --- frontend/src/ts/modals/import-export-settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/modals/import-export-settings.ts b/frontend/src/ts/modals/import-export-settings.ts index fec0cf230..c76cf0e2f 100644 --- a/frontend/src/ts/modals/import-export-settings.ts +++ b/frontend/src/ts/modals/import-export-settings.ts @@ -37,7 +37,7 @@ const modal = new AnimatedModal({ modalEl.querySelector("input")?.addEventListener("input", (e) => { state.value = (e.target as HTMLInputElement).value; }); - modalEl.querySelector("form")?.addEventListener("submit", async (e) => { + modalEl?.addEventListener("submit", async (e) => { e.preventDefault(); if (state.mode !== "import") return; if (state.value === "") {