From 43b5a435ec890aa377fce9d4181726fd9dc48203 Mon Sep 17 00:00:00 2001 From: Nithin David Thomas Date: Mon, 22 Mar 2021 20:24:51 +0530 Subject: [PATCH] Fix: Add check for id on update conversation (#1966) --- app/javascript/dashboard/helper/actionCable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/helper/actionCable.js b/app/javascript/dashboard/helper/actionCable.js index 6cb1f7229..73b3e7213 100644 --- a/app/javascript/dashboard/helper/actionCable.js +++ b/app/javascript/dashboard/helper/actionCable.js @@ -48,7 +48,10 @@ class ActionCableConnector extends BaseActionCableConnector { }; onAssigneeChanged = payload => { - this.app.$store.dispatch('updateConversation', payload); + const { id } = payload; + if (id) { + this.app.$store.dispatch('updateConversation', payload); + } this.fetchConversationStats(); };