mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
threshold 1
This commit is contained in:
committed by
Aiden McClelland
parent
5dfa9af40e
commit
6386359fe3
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user