Explorar o código

Merge pull request #565 from ollama-webui/search-fix

fix: search
Timothy Jaeryang Baek hai 1 ano
pai
achega
39986c4ec8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/lib/components/layout/Sidebar.svelte

+ 2 - 1
src/lib/components/layout/Sidebar.svelte

@@ -321,8 +321,9 @@
 						return true;
 					} else {
 						let title = chat.title.toLowerCase();
+						const query = search.toLowerCase();
 
-						if (title.includes(search)) {
+						if (title.includes(query)) {
 							return true;
 						} else {
 							return false;