bugfix: currentList iwrd bei list.js schon als die ID der liste übergeben
This commit is contained in:
1 parent
02eac10d9a
commit
a635d7c374
1 file changed
+2
-3
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user