This commit is contained in:
2026-03-17 18:22:19 +03:00
parent ad76c710dd
commit bc704b03cd

View File

@@ -18,11 +18,7 @@ export const useChatsStore = defineStore('chats', () => {
const selected = ref<string[]>([])
const selectedChat = computed(() => {
const chatId = selected.value[0]
return chats.value.find((chat: Chat) => {
return chat.id === chatId
})
return chats.value.find((chat: Chat) => chat.id === selected.value[0])
})
function getChatInfo(chat: Chat) {