From bcca4a8d3d13058095c64ba4c669e721a6a6059d Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:08:04 +0200 Subject: [PATCH] also don't add items with reAddToItemList --- static/webui/script.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 129d334b..632200bc 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -3410,10 +3410,13 @@ function doAddCurrency(currency) { } function reAddToItemList(itemMap, datalist, itemType) { - const option = document.createElement("option"); - option.setAttribute("data-key", itemType); - option.value = itemMap[itemType]?.name ?? itemType; - document.getElementById("datalist-" + datalist).appendChild(option); + const item = itemMap[itemType]; + if (!item?.alwaysAvailable) { + const option = document.createElement("option"); + option.setAttribute("data-key", itemType); + option.value = item?.name ?? itemType; + document.getElementById("datalist-" + datalist).appendChild(option); + } } function doQuestUpdate(operation, itemType) {