From a2fac3635b50675e2d33783b4916f8a6b1cdcc76 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 7 Mar 2025 01:35:27 +0100 Subject: [PATCH] use getKey in doChangeSupportedSyndicate --- static/webui/script.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 21a135e6..fd0811d6 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -1147,10 +1147,7 @@ function doImport() { } function doChangeSupportedSyndicate() { - const uniqueName = - [...document.querySelectorAll("#datalist-Syndicates option")] - .find(option => option.value === document.getElementById("changeSyndicate").value) - ?.getAttribute("data-key") || ""; + const uniqueName = getKey(document.getElementById("changeSyndicate")); revalidateAuthz(() => { $.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {