mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
mk list search fix
This commit is contained in:
committed by
Aiden McClelland
parent
4a63e3079c
commit
f5f6b92d1b
@@ -96,7 +96,9 @@ export class MarketplaceListPage {
|
||||
}
|
||||
|
||||
async search (): Promise<void> {
|
||||
this.category = undefined
|
||||
if (this.query) {
|
||||
this.category = undefined
|
||||
}
|
||||
await this.filterPkgs()
|
||||
}
|
||||
|
||||
@@ -140,7 +142,7 @@ export class MarketplaceListPage {
|
||||
}
|
||||
|
||||
const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 })
|
||||
this.pkgs = fuse.search(this.category !== 'all' ? this.category : 'bit').map(p => p.item)
|
||||
this.pkgs = fuse.search(this.category !== 'all' ? this.category || '' : 'bit').map(p => p.item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user