diff --git a/components/match2/wikis/mobilelegends/match_summary.lua b/components/match2/wikis/mobilelegends/match_summary.lua index e6d502d5948..d0c87276083 100644 --- a/components/match2/wikis/mobilelegends/match_summary.lua +++ b/components/match2/wikis/mobilelegends/match_summary.lua @@ -50,13 +50,14 @@ end function CustomMatchSummary.createBody(match) local showCountdown = match.timestamp ~= DateExt.defaultTimestamp local characterBansData = MatchSummary.buildCharacterBanData(match.games, MAX_NUM_BANS) + local casterRow = MatchSummary.makeCastersRow(match.extradata.casters) return MatchSummaryWidgets.Body{children = WidgetUtil.collect( showCountdown and MatchSummaryWidgets.Row{children = DisplayHelper.MatchCountdownBlock(match)} or nil, unpack(Array.map(match.games, FnUtil.curry(CustomMatchSummary._createGame, match.date))), MatchSummaryWidgets.Mvp(match.extradata.mvp), MatchSummaryWidgets.CharacterBanTable{bans = characterBansData, date = match.date}, - MatchSummary.makeCastersRow(match.extradata.casters):create() + casterRow and casterRow:create() or nil )} end diff --git a/components/match2/wikis/smite/match_summary.lua b/components/match2/wikis/smite/match_summary.lua index d16739df4ff..ec8b22831e1 100644 --- a/components/match2/wikis/smite/match_summary.lua +++ b/components/match2/wikis/smite/match_summary.lua @@ -52,12 +52,13 @@ end function CustomMatchSummary.createBody(match) local showCountdown = match.timestamp ~= DateExt.defaultTimestamp local characterBansData = MatchSummary.buildCharacterBanData(match.games, MAX_NUM_BANS) + local casterRow = MatchSummary.makeCastersRow(match.extradata.casters) return MatchSummaryWidgets.Body{children = WidgetUtil.collect( showCountdown and MatchSummaryWidgets.Row{children = DisplayHelper.MatchCountdownBlock(match)} or nil, unpack(Array.map(match.games, FnUtil.curry(CustomMatchSummary._createGame, match.date))), MatchSummaryWidgets.CharacterBanTable{bans = characterBansData, date = match.date}, - MatchSummary.makeCastersRow(match.extradata.casters):create() + casterRow and casterRow:create() or nil )} end