From d5100dbfff22972cb7aad47ef302d4822f89b131 Mon Sep 17 00:00:00 2001 From: mbergen Date: Tue, 22 Oct 2024 11:36:03 +0200 Subject: [PATCH] fix(match2): Iterate without requiring index for AoE matchlinks (#4928) fix(match2) Iterate without requiring index for AoE matchlinks --- components/match2/wikis/ageofempires/match_summary.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/match2/wikis/ageofempires/match_summary.lua b/components/match2/wikis/ageofempires/match_summary.lua index 587eda527f6..b41b40d4e71 100644 --- a/components/match2/wikis/ageofempires/match_summary.lua +++ b/components/match2/wikis/ageofempires/match_summary.lua @@ -102,7 +102,7 @@ function CustomMatchSummary.addToFooter(match, footer) mw.log('Unknown link: ' .. linkType) return end - for _, link in Table.iter.pairsByPrefix(match.links, linkType) do + for _, link in Table.iter.pairsByPrefix(match.links, linkType, {requireIndex = false}) do footer:addLink(link, currentLinkData.icon, currentLinkData.iconDark, currentLinkData.text) end end