Skip to content

Commit 9f4de36

Browse files
committed
add catch
1 parent c9c1a9a commit 9f4de36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/composables/useChats.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export const useChats = createSharedComposable(() => {
2020
to: `/chat/${chat.id}`,
2121
icon: 'i-lucide-message-circle',
2222
createdAt: chat.createdAt
23-
})))
23+
}))).catch(error => {
24+
console.error(error)
25+
return []
26+
})
2427
}
2528

2629
const groups = computed(() => {

0 commit comments

Comments
 (0)