From 08a7fb9fe9ed635533913388012942a9c5ed1608 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 26 Aug 2024 16:16:43 -0400 Subject: [PATCH] make sure to skip shouldGoTo link when mapping the api list --- v3-docs/docs/components/scripts/map-maker.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v3-docs/docs/components/scripts/map-maker.js b/v3-docs/docs/components/scripts/map-maker.js index ea98269190..0222a49303 100644 --- a/v3-docs/docs/components/scripts/map-maker.js +++ b/v3-docs/docs/components/scripts/map-maker.js @@ -130,6 +130,11 @@ export function filterMap(filter, apiList) { const newLinks = {}; for (const key in apiList[api]) { const links = apiList[api][key]; + // We get the shouldGoTo link here as well. + // In this case we just skip it + if (!Array.isArray(links)) { + continue; + } const newLinksArray = links.filter((link) => { return link.toLowerCase().includes(filter.toLowerCase()); });