bugfix: listID schon im scheiß parameter

This commit is contained in:
Technoir committed 2026-10-05 21:56:53 +02:00
1 parent 6bedcb1836
commit 2b2889cb63
1 file changed
+2 -3
+2 -3
View File
@@ -25,9 +25,8 @@ export function deleteItem(itemID) {
}
export function addCategory() {
let id = currentList.id;
fetch(`/api/list/${id}/category/`,
export function addCategory(listID, categoryName) {
fetch(`/api/list/${listID}/category/`,
{
method: "POST"
, body: JSON.stringify({ "categoryName": categoryName })