We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e545f commit b43c58aCopy full SHA for b43c58a
src/composables/useChats.ts
@@ -14,7 +14,7 @@ export const useChats = createSharedComposable(() => {
14
const chats = ref<Chat[]>([])
15
16
const fetchChats = async () => {
17
- chats.value = await $fetch('/api/chats').then(data => data.map((chat: Chat) => ({
+ chats.value = await $fetch('/api/chats').then(data => data.map(chat => ({
18
id: chat.id,
19
label: chat.title || 'Untitled',
20
to: `/chat/${chat.id}`,
0 commit comments