0xbs / premade-groups-filter

A World of Warcraft addon for powerful filtering of premade group listings.
GNU General Public License v2.0
76 stars 40 forks source link

Missing difficulty drop down value on first load #182

Closed m33shoq closed 1 year ago

m33shoq commented 1 year ago

On first load after update my difficulty drop down was empty(as on screeshot) If u click difficulty checkbox while difficulty drop down has no value in i got an error

image

2x ...rfacePremadeGroupsFilter/UI/DungeonPanel.lua:153: attempt to concatenate field '?' (a nil value)
[string "@PremadeGroupsFilter/UI/DungeonPanel.lua"]:153: in function `GetFilterExpression'
[string "@PremadeGroupsFilter/UI/DungeonPanel.lua"]:144: in function `TriggerFilterExpressionChange'
[string "@PremadeGroupsFilter/UI/Common.lua"]:99: in function <PremadeGroupsFilter/UI/Common.lua:97>

Locals:
self = PremadeGroupsFilterDungeonPanel {
 0 = <userdata>
 Group = Frame {
 }
 GetSortingExpression = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:180
 Advanced = Frame {
 }
 GetFilterExpression = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:150
 GetNumDungeonsSelected = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:184
 OnLoad = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:46
 OnHide = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:114
 ToogleDungeonAlert = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:194
 Dungeons = Frame {
 }
 state = <table> {
 }
 TriggerFilterExpressionChange = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:142
 name = "dungeon"
 OnShow = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:110
 Init = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:85
 OnUpdateExpression = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:136
 OnReset = <function> defined @PremadeGroupsFilter/UI/DungeonPanel.lua:118
}
expression = "true"
(*temporary) = "true"
(*temporary) = " and "
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to concatenate field '?' (a nil value)"
PGF = <table> {
 PopupMenu_Toggle = <function> defined @PremadeGroupsFilter/UI/PopupMenu.lua:127
 numResultsAfterFilter = 100
 PersistSignUpNote = <function> defined @PremadeGroupsFilter/Modules/PersistSignUpNote.lua:39
 GameTooltip_AddWhite = <function> defined @PremadeGroupsFilter/UI/Help.lua:25
 ResetSearchEntries = <function> defined @PremadeGroupsFilter/Main.lua:35
 previousSearchExpression = ""
 PlayerOrGroupHasProperty = <function> defined @PremadeGroupsFilter/Modules/RemainingSlots.lua:107
 AddRoleIndicators = <function> defined @PremadeGroupsFilter/Modules/RoleIndicators.lua:70
 GetLockoutInfo = <function> defined @PremadeGroupsFilter/Modules/Lockout.lua:40
 NAMESUFFIX_TO_DIFFICULTY = <table> {
 }
 MigrateStateV2 = <function> defined @PremadeGroupsFilter/Init.lua:139
 Table_Copy_Shallow = <function> defined @PremadeGroupsFilter/Modules/Util.lua:36
 Table_Subtract = <function> defined @PremadeGroupsFilter/Modules/Util.lua:57
 GetPlayerInfo = <function> defined @PremadeGroupsFilter/Modules/PlayerInfo.lua:80
 softDeclinedGroups = <table> {
 }
 DoesPassThroughFilter = <function> defined @PremadeGroupsFilter/Modules/Expression.lua:37
 previousSearchLeaders = <table> {
 }
 HasRemainingSlotsForLocalPlayerPartyRoles = <function> defined @PremadeGroupsFilter/Modules/RemainingSlots.lua:36
 GetPvPScoreRarityColorByTier = <function> defined @PremadeGroupsFilter/Modules/RatingInfo.lua:25
 String_TrimWhitespace = <function> defined @PremadeGroupsFilter/Modules/Util.lua:89
 ratingInfoFrames = <table> {
 }
 HasRemainingSlotsForBattleRezzAfterJoin = <function> defined @PremadeGroupsFilter/Modules/RemainingSlots.lua:95
 currentSearchResults = <table> {
 }
 UsePGFButton = UsePGFButton {
 }
 GetSearchResultMemberInfoTable = <function> defined @PremadeGroupsFilter/Modules/MemberInfo.lua:32
 searchResultIDInfo = <table> {
 }
 RemoveCommentLines = <function> defined @PremadeGroupsFilter/Modules/Util.lua:128
 Dialog = PremadeGroupsFilterDialog {
 }
 Dialog_InfoButton_OnClick = <function> defined @PremadeGroupsFilter/UI/Help.lua:84
 GetDifficulty = <function> defined @PremadeGroupsFilter/Modules/Difficulty.lua:385
 Dialog_InfoButton_OnLeave = <function> defined @PremadeGroupsFilter/UI/Help.lua:80
 IsMostLikelySameInstance = <function> de