fix: case insensitive model search

This commit is contained in:
Jun Siang Cheah 2024-05-18 19:59:29 +08:00
parent 400bfa5a02
commit f9587032de
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>