Skip to content

Commit

Permalink
Fixed a bug where a new category via the drop interface could be made…
Browse files Browse the repository at this point in the history
… without a name.
  • Loading branch information
Cidan committed May 19, 2024
1 parent 62655c4 commit c88956b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frames/bag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ function bagFrame.bagProto:CreateCategoryForItemInCursor()
---@cast itemID number
question:AskForInput("Create Category", format(L:G("What would you like to name the new category for %s?"), itemLink),
function(input)
if input == nil then return end
if input == "" then return end
categories:AddItemToPersistentCategory(itemID, input)
events:SendMessage('bags/FullRefreshAll')
end)
Expand Down

0 comments on commit c88956b

Please sign in to comment.