refac: bypass confirm dialog for edit

This commit is contained in:
Timothy J. Baek 2024-06-12 01:22:52 -07:00
parent dd2941bb43
commit 326ac41422

View File

@ -57,7 +57,11 @@
bind:this={formElement}
class=" flex flex-col max-h-[100dvh] h-full"
on:submit|preventDefault={() => {
showConfirm = true;
if (edit) {
submitHandler();
} else {
showConfirm = true;
}
}}
>
<div class="mb-2.5">