threshold 1

This commit is contained in:
Drew Ansbacher
2021-09-30 12:18:33 -06:00
committed by Aiden McClelland
parent 5dfa9af40e
commit 6386359fe3

View File

@@ -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)
}
}