Addons Store: Also search the addon id

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
pull/3021/head
Jimmy Tanagra 2025-01-14 10:34:59 +10:00 committed by Florian Hotze
parent ec230c9c8d
commit 162aaa6390
1 changed files with 1 additions and 1 deletions

View File

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