From 6386359fe3dae064efdf19131c04deb5e9f70842 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Thu, 30 Sep 2021 12:18:33 -0600 Subject: [PATCH] threshold 1 --- .../marketplace-list/marketplace-list.page.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts b/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts index 7eb672b03..ec17e10a1 100644 --- a/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts +++ b/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts @@ -134,7 +134,12 @@ export class MarketplaceListPage { return this.category === 'all' || p.categories.includes(this.category) }) - const fuse = new Fuse(pkgsToSort, { threshold: 1, ...defaultOps}) + const opts = { + ...defaultOps, + threshold: 1, + } + + const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 }) this.pkgs = fuse.search(this.category !== 'all' ? this.category : 'bit').map(p => p.item) } }