"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "493e3068d806520b7fde713cd52740c236758a61"
Commit f9587032 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: case insensitive model search

parent 400bfa5a
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
let ollamaVersion = null; let ollamaVersion = null;
$: filteredItems = searchValue $: filteredItems = searchValue
? items.filter((item) => item.value.includes(searchValue.toLowerCase())) ? items.filter((item) => item.value.toLowerCase().includes(searchValue.toLowerCase()))
: items; : items;
const pullModelHandler = async () => { const pullModelHandler = async () => {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
let searchValue = ''; let searchValue = '';
$: filteredItems = searchValue $: filteredItems = searchValue
? items.filter((item) => item.value.includes(searchValue.toLowerCase())) ? items.filter((item) => item.value.toLowerCase().includes(searchValue.toLowerCase()))
: items; : items;
</script> </script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment