Fix addList function to include type in API request URL

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2025-10-04 22:35:27 +01:00
parent f046636be3
commit 4b5697c7be

View File

@@ -515,12 +515,12 @@ function addList(event) {
}
$.ajax({
url: document.body.dataset.apiurl + "/lists",
url: document.body.dataset.apiurl + "/lists?type=" + encodeURIComponent(type),
method: "post",
dataType: "json",
processData: false,
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ address: addresses, comment, type, groups: group }),
data: JSON.stringify({ address: addresses, comment, groups: group }),
success(data) {
utils.enableAll();
utils.listsAlert(type + "list", addresses, data);