diff --git a/web/src/elements/forms/ModalForm.ts b/web/src/elements/forms/ModalForm.ts index aeaa38416..194c7b21e 100644 --- a/web/src/elements/forms/ModalForm.ts +++ b/web/src/elements/forms/ModalForm.ts @@ -7,13 +7,15 @@ import { Form } from "./Form"; export class ModalForm extends ModalButton { confirm(): void { - this.querySelectorAll>("ak-form").forEach(form => { + this.querySelectorAll>("[slot=form]").forEach(form => { const formPromise = form.submit(new Event("submit")); if (!formPromise) { return; } - formPromise.then(() => { + formPromise.then((a) => { this.open = false; + }).catch((e) => { + console.log(e); }); }); }