Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

improve fetching

Hugo Richard95b1df170c61
diff --git a/apps/chat/app/layouts/default.vue b/apps/chat/app/layouts/default.vue
index 3bec867..614c7ca 100644
--- a/apps/chat/app/layouts/default.vue
+++ b/apps/chat/app/layouts/default.vue
@@ -36,13 +36,6 @@ const { data: chats, refresh: refreshChats } = await useFetch<Chat[]>('/api/chat
}))
})
-onNuxtReady(async () => {
- const first10 = (chats.value || []).slice(0, 10)
- for (const chat of first10) {
- await $fetch(`/api/chats/${chat.id}`)
- }
-})
-
watch(loggedIn, () => {
refreshChats()
diff --git a/apps/chat/app/pages/chat/[id].vue b/apps/chat/app/pages/chat/[id].vue
index 9e03730..dd4ab11 100644
--- a/apps/chat/app/pages/chat/[id].vue
+++ b/apps/chat/app/pages/chat/[id].vue
@@ -86,7 +86,7 @@ function handleSubmit(e: Event) {
const copied = ref(false)
-function copy(e: MouseEvent, message: UIMessage) {
+function copy(_e: MouseEvent, message: UIMessage) {
clipboard.copy(getTextFromMessage(message))
copied.value = true