mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +00:00
Merge pull request #2368 from cheahjs/fix/case-insensitive-model-search
fix: case insensitive model search
This commit is contained in:
commit
6f6b18e727
@ -36,7 +36,7 @@
|
||||
let ollamaVersion = null;
|
||||
|
||||
$: filteredItems = searchValue
|
||||
? items.filter((item) => item.value.includes(searchValue.toLowerCase()))
|
||||
? items.filter((item) => item.value.toLowerCase().includes(searchValue.toLowerCase()))
|
||||
: items;
|
||||
|
||||
const pullModelHandler = async () => {
|
||||
|
@ -26,7 +26,7 @@
|
||||
let searchValue = '';
|
||||
|
||||
$: filteredItems = searchValue
|
||||
? items.filter((item) => item.value.includes(searchValue.toLowerCase()))
|
||||
? items.filter((item) => item.value.toLowerCase().includes(searchValue.toLowerCase()))
|
||||
: items;
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user