bugfix: currentList iwrd bei list.js schon als die ID der liste übergeben

This commit is contained in:
Technoir committed 2026-10-05 21:56:10 +02:00
1 parent 02eac10d9a
commit a635d7c374
1 file changed
+2 -3
+2 -3
View File
@@ -1,7 +1,6 @@
export function addItem(currentList, itemName, itemAmount, categoryID) {
let id = currentList.id;
fetch(`/api/list/${id}/item`,
export function addItem(listID, itemName, itemAmount, categoryID) {
fetch(`/api/list/${listID}/item`,
{
method: "POST",
body: JSON.stringify({