diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index afd4b0e5..7eaf4f61 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/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;