Merge pull request #13342 from meteor/fix/add-shouldgoto-link-inside-filter-map

Fix Docs - Add shouldGoTo link inside the mapped links
This commit is contained in:
Denilson
2024-09-11 11:39:46 -04:00
committed by GitHub

View File

@@ -131,8 +131,9 @@ export function filterMap(filter, apiList) {
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
// In this case we just added it and continue
if (!Array.isArray(links)) {
newLinks[key] = links;
continue;
}
const newLinksArray = links.filter((link) => {