"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "058eb765687a542e4ce542d5fc8aea921ef85035"
Unverified Commit 6f6b18e7 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2368 from cheahjs/fix/case-insensitive-model-search

fix: case insensitive model search
parents 400bfa5a f9587032
......@@ -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>
......
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