diff --git a/frontend/src/stores/conversation.js b/frontend/src/stores/conversation.js index 6d816a81..3a24adb7 100644 --- a/frontend/src/stores/conversation.js +++ b/frontend/src/stores/conversation.js @@ -209,7 +209,9 @@ export const useConversationStore = defineStore('conversation', () => { const index = conversations.data.findIndex(conv => conv.uuid === uuid) if (index !== -1) { setTimeout(() => { - conversations.data[index].unread_message_count = 0 + if (conversations.data?.[index]) { + conversations.data[index].unread_message_count = 0 + } }, 3000) } }