Skip to content

Commit

Permalink
Fixed duplicate items per set showing as "Sets: <name>,<name>"
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner committed Jan 1, 2025
1 parent b96b893 commit e68c3f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"Lua.workspace.library": [
"C:\\Users\\schaffner\\lua\\ItemRack",
"C:\\Users\\schaffner\\lua\\BetterBags",
"~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations"
"~\\.vscode\\extensions\\ketho.wow-api-0.18.1\\Annotations"
]
}
4 changes: 2 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ local function updateCategories()

if itemSets == nil then
usedItems[id] = { setName }
-- Extend existing labels
else
-- Extend existing labels and filter duplicate items per set
elseif usedItems[id][setName] ~= nil then
table.insert(usedItems[id], setName)
end
end
Expand Down

0 comments on commit e68c3f2

Please sign in to comment.