fix(webui): showing hidden recipes for "add items" (#672)

This commit is contained in:
Sainan 2024-12-31 01:40:32 +01:00 committed by GitHub
parent 0e1ee0c669
commit ddb1a8d665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ const getItemListsController: RequestHandler = (req, res) => {
} }
const recipeNameTemplate = getString("/Lotus/Language/Items/BlueprintAndItem", lang); const recipeNameTemplate = getString("/Lotus/Language/Items/BlueprintAndItem", lang);
for (const [uniqueName, item] of Object.entries(ExportRecipes)) { for (const [uniqueName, item] of Object.entries(ExportRecipes)) {
if (!item.secretIngredientAction) { if (!item.hidden) {
const resultName = getItemName(item.resultType); const resultName = getItemName(item.resultType);
if (resultName) { if (resultName) {
miscitems.push({ miscitems.push({