Skip to content

Commit

Permalink
πŸ› Local dev listing: fix search (#27751)
Browse files Browse the repository at this point in the history
Fuse.js changed its API. Broke on #27537
  • Loading branch information
alanorozco committed Apr 14, 2020
1 parent 9cc61e6 commit 2e097a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/server/app-index/api/api.js
Expand Up @@ -37,7 +37,7 @@ function searchListing(fileSet, opt_searchQuery) {
threshold: 0.4,
});

return fuse.search(opt_searchQuery).map((i) => fileSet[i]);
return fuse.search(opt_searchQuery).map(({item}) => item);
}

async function handleListingRequest({query: {path, search}}, res) {
Expand Down

0 comments on commit 2e097a6

Please sign in to comment.