From 5cbd61b884ef387d4c6e04cb078370f5dc15c07d Mon Sep 17 00:00:00 2001 From: Nicolas Bonamy Date: Tue, 24 Dec 2024 18:00:59 -0600 Subject: [PATCH] always show root folder --- src/components/ChatListFolder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChatListFolder.vue b/src/components/ChatListFolder.vue index dadb341..36cdefa 100644 --- a/src/components/ChatListFolder.vue +++ b/src/components/ChatListFolder.vue @@ -59,7 +59,7 @@ const visibleFolders = computed(() => { } folders.sort((a: Folder, b: Folder) => a.name.localeCompare(b.name)) let rootChats = store.history.chats.filter(c => store.history.folders.every(f => !f.chats.includes(c.uuid))) - if (rootChats.length) folders.push({ id: store.rootFolder.id, name: store.rootFolder.name, chats: rootChats.map(c => c.uuid) }) + folders.push({ id: store.rootFolder.id, name: store.rootFolder.name, chats: rootChats.map(c => c.uuid) }) return folders.map(f => { return { id: f.id,