Skip to content

Commit

Permalink
Fix: Fixed Catalyst items for people who had never favorited a Cataly…
Browse files Browse the repository at this point in the history
…st item (Thanks Kuuhaku@WoW)
  • Loading branch information
Wolkenschutz committed Feb 22, 2024
1 parent 07cab6b commit d3e30b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/catalyst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function Catalyst:Update()
if (Addon.Database:IsFavoritesShowAllSpecs()) then
_itemList = Addon.Database:GetFavoritesForMapID(mapID);
else
_itemList = Addon.Database:GetFavorites(mapID, specID) or {};
_itemList = Addon.Database:GetFavorites(mapID, specID);
end
elseif (catalystItemList[slotID] ~= nil) then
local itemInfo = catalystItemList[slotID][classID];
Expand All @@ -198,7 +198,7 @@ function Catalyst:Update()
};
end

for itemID, itemInfo in next, _itemList do
for itemID, itemInfo in next, _itemList or {} do
numItems = numItems + 1;

local Frame = GetItemFrame(numItems);
Expand Down

0 comments on commit d3e30b5

Please sign in to comment.