diff --git a/components/match2/commons/match_summary_base.lua b/components/match2/commons/match_summary_base.lua index e2ab758fad..27381c157d 100644 --- a/components/match2/commons/match_summary_base.lua +++ b/components/match2/commons/match_summary_base.lua @@ -176,10 +176,10 @@ function Footer:addLinks(links) if not currentLinkData then mw.log('Unknown link: ' .. linkType) elseif type(link) == 'table' then - Array.forEach(link, function(gameLink, gameIdx) + for gameIdx, gameLink in Table.iter.spairs(link) do local newText = currentLinkData.text .. ' on Game ' .. gameIdx self:addLink(gameLink, currentLinkData.icon, currentLinkData.iconDark, newText) - end) + end else self:addLink(link, currentLinkData.icon, currentLinkData.iconDark, currentLinkData.text) end