Skip to content

Commit

Permalink
FIxed a bug where removing an item from a category would error out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Sep 3, 2024
1 parent d4c9063 commit 788153c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frames/sectionitemlist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ local themes = addon:GetModule('Themes')
---@class Context: AceModule
local context = addon:GetModule('Context')

---@class Debug: AceModule
local debug = addon:GetModule('Debug')

---@class SectionItemList: AceModule
local sectionItemList = addon:NewModule('SectionItemList')

Expand Down Expand Up @@ -108,7 +111,7 @@ function sectionItemListFrame:OnItemClick(ctx, b, elementData)
notCheckable = true,
hasArrow = false,
func = function()
database:DeleteItemFromCategory(elementData.data.itemInfo.itemID, elementData.category)
database:DeleteItemFromCategory(elementData.id, elementData.category)
events:SendMessage(ctx, 'bags/FullRefreshAll')
end
}})
Expand Down

0 comments on commit 788153c

Please sign in to comment.