From 6afa1fb556b6b2208314e702b7b23f1709db9a41 Mon Sep 17 00:00:00 2001 From: Nithin David Thomas Date: Fri, 19 Mar 2021 12:55:05 +0530 Subject: [PATCH] Fix: Error when assigns a conversation to user (#1926) --- app/javascript/dashboard/helper/actionCable.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/javascript/dashboard/helper/actionCable.js b/app/javascript/dashboard/helper/actionCable.js index 9bed8e7d5..6cb1f7229 100644 --- a/app/javascript/dashboard/helper/actionCable.js +++ b/app/javascript/dashboard/helper/actionCable.js @@ -48,11 +48,7 @@ class ActionCableConnector extends BaseActionCableConnector { }; onAssigneeChanged = payload => { - const { meta = {}, id } = payload; - const { assignee } = meta || {}; - if (id) { - this.app.$store.dispatch('updateAssignee', { id, assignee }); - } + this.app.$store.dispatch('updateConversation', payload); this.fetchConversationStats(); };