From 30fe9fbcaa57c71d8adf8e6a214dab6483a5392d Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 12 Mar 2025 22:32:25 +0530 Subject: [PATCH] feat: meta can be optional too --- .../dashboard/store/modules/conversations/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/store/modules/conversations/index.js b/app/javascript/dashboard/store/modules/conversations/index.js index daf8d3cdb..aeb7af980 100644 --- a/app/javascript/dashboard/store/modules/conversations/index.js +++ b/app/javascript/dashboard/store/modules/conversations/index.js @@ -231,11 +231,11 @@ export const mutations = { if (conversation.updated_at === selectedConversation.updated_at) { const differentAssignee = - conversation.meta.assignee?.id !== - selectedConversation.meta.assignee?.id; + conversation.meta?.assignee?.id !== + selectedConversation.meta?.assignee?.id; const differentTeams = - conversation.meta.team?.id !== selectedConversation.meta.team?.id; + conversation.meta?.team?.id !== selectedConversation.meta?.team?.id; if (differentTeams || differentAssignee) { Sentry.withScope(scope => {