Skip to content

Commit

Permalink
Fix installed packages page not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Mar 27, 2020
1 parent e167c4f commit 4e58308
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export function useLocalSearch(packageList: PackageList) {
const localSearchRef = useRef<LocalSearch | null>(null);

useEffect(() => {
if (!packageList.length) return;

const localSearch = new LocalSearch(searchIdField);
fieldsToSearch.forEach(field => localSearch.addIndex(field));
localSearch.addDocuments(packageList);
Expand Down

0 comments on commit 4e58308

Please sign in to comment.