From 3848b2c8edda3de0769d7cc7eae7b2d2b5e20e29 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 24 Jan 2024 23:51:22 -0800 Subject: [PATCH] fix: search --- src/lib/components/layout/Sidebar.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;