Add-on Store: Extend search to add-on descriptions (#3028)

Resolves #2870.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
main
jimtng 2025-01-20 04:03:07 +10:00 committed by GitHub
parent 14a665fc1a
commit 3e010ec300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ export default {
results = results.filter((a) => a.type === this.currentTab)
}
query = query.toLowerCase()
results = results.filter((a) => a.id.includes(query) || a.label.toLowerCase().includes(query))
results = results.filter((a) => a.id.includes(query) || a.label.toLowerCase().includes(query) || a.description?.toLowerCase()?.includes(query))
this.$set(this, 'query', query)
this.$set(this, 'searchResults', results)