shopping-item initalisiert

This commit is contained in:
Technoir committed 2026-10-13 19:10:50 +02:00
1 parent 5e0b6d7477
commit ad9fc0e02a
1 file changed
+2
@@ -1,3 +1,4 @@
import { ShoppingItem } from "../../models/ShoppingItem.js";
import { showError, initErrors } from "../../shared/error.js";
import * as api from "./api/listAPI.js"
import * as ui from "./frontend/listUI.js"
@@ -165,6 +166,7 @@ function init() {
initErrors(document.querySelector(".nav"));
customElements.define("shopping-item", ShoppingItem);
addCategoryForm.addEventListener("submit", (event) => {
event.preventDefault();
let formData = Object.fromEntries(new FormData(addCategoryForm));