diff --git a/src/main/resources/static/js/pages/index/api/indexAPI.js b/src/main/resources/static/js/pages/index/api/indexAPI.js index 7a85ba6..f02b2d2 100644 --- a/src/main/resources/static/js/pages/index/api/indexAPI.js +++ b/src/main/resources/static/js/pages/index/api/indexAPI.js @@ -14,8 +14,8 @@ export async function addList(listName) { } export async function deleteList(id) { - const response = await fetch(`/api/list/${id}`, { method: "DELETE" }) - .then(r => console.log("Liste entfernt")) + const response = await fetch(`/api/list/${id}`, { method: "DELETE" }); + return response; }