diff --git a/components/infobox/wikis/deadlock/infobox_item_custom.lua b/components/infobox/wikis/deadlock/infobox_item_custom.lua index 87f6ca55f30..5276e975cb0 100644 --- a/components/infobox/wikis/deadlock/infobox_item_custom.lua +++ b/components/infobox/wikis/deadlock/infobox_item_custom.lua @@ -125,14 +125,13 @@ function CustomItem:getWikiCategories(args) if String.isNotEmpty(args.category) then table.insert(categories, args.category .. ' Items') - end + end local possibleCategories = { ['Items with Active Abilities'] = 'active', ['Items with Passive Abilities'] = 'passive', } - - + for category, requiredArg in pairs(possibleCategories) do if String.isNotEmpty(args[requiredArg]) then table.insert(categories, category)