mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
enh: allow label search
This commit is contained in:
parent
c6a57b1f6f
commit
7f2e89a8aa
@ -46,6 +46,7 @@
|
|||||||
(item) =>
|
(item) =>
|
||||||
(searchValue
|
(searchValue
|
||||||
? item.value.toLowerCase().includes(searchValue.toLowerCase()) ||
|
? item.value.toLowerCase().includes(searchValue.toLowerCase()) ||
|
||||||
|
item.label.toLowerCase().includes(searchValue.toLowerCase()) ||
|
||||||
(item.model?.info?.meta?.tags ?? []).some((tag) =>
|
(item.model?.info?.meta?.tags ?? []).some((tag) =>
|
||||||
tag.name.toLowerCase().includes(searchValue.toLowerCase())
|
tag.name.toLowerCase().includes(searchValue.toLowerCase())
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user