diff --git a/src/Classes/TradeQuery.lua b/src/Classes/TradeQuery.lua index e76d1fdd12..b5b13d6bcf 100644 --- a/src/Classes/TradeQuery.lua +++ b/src/Classes/TradeQuery.lua @@ -528,10 +528,11 @@ end -- Popup to set stat weight multipliers for sorting function TradeQueryClass:SetStatWeights(previousSelectionList) - local controls = { } - local statList = { } + previousSelectionList = previousSelectionList or {} + local controls = { } + local statList = { } local sliderController = { index = 1 } - local popupHeight = 285 + local popupHeight = 285 controls.ListControl = new("TradeStatWeightMultiplierListControl", { "TOPLEFT", nil, "TOPRIGHT" }, -410, 45, 400, 200, statList, sliderController)