mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #13315 from meteor/fix/docs-api-search
Fix Meteor docs API search
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user