bugfix: listID schon im scheiß parameter
This commit is contained in:
1 parent
6bedcb1836
commit
2b2889cb63
1 file changed
+2
-3
@@ -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 })
|
||||
|
||||
Reference in new issue
Block a user