fix(import export modal): import not working

!nuf
This commit is contained in:
Miodec 2024-03-24 17:55:11 +01:00
parent 6167506b89
commit 7b86d5c606

View file

@ -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 === "") {