Skip to content

Commit

Permalink
fix(import export modal): import not working
Browse files Browse the repository at this point in the history
!nuf
  • Loading branch information
Miodec committed Mar 24, 2024
1 parent 6167506 commit 7b86d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/modals/import-export-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 === "") {
Expand Down

0 comments on commit 7b86d5c

Please sign in to comment.