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

fix: case insensitive model search
This commit is contained in:
Timothy Jaeryang Baek 2024-05-18 10:44:07 -10:00 committed by GitHub
commit 6f6b18e727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 () => {

View File

@ -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>