Skip to content

Commit

Permalink
always show root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Dec 25, 2024
1 parent 3982da7 commit 5cbd61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatListFolder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5cbd61b

Please sign in to comment.