Skip to content

Commit

Permalink
filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 10, 2024
1 parent bc02664 commit 49fb77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ defineExpose({
const visibleChats = computed(() => store.chats.filter((c) => {
if (c.title.toLowerCase().includes(props.filter.toLowerCase())) return true
if (c.messages.some(m => m.content.toLowerCase().includes(props.filter.toLowerCase()))) return true
if (c.messages.some(m => m.content?.toLowerCase().includes(props.filter.toLowerCase()))) return true
return false
}).toSorted((a,b) => b.lastModified - a.lastModified))
Expand Down

0 comments on commit 49fb77d

Please sign in to comment.