diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue b/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue index 7c34b4fb1..5f8d3b6f8 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue @@ -80,7 +80,11 @@ export default { return false; }, }, - + watch: { + conversationId() { + this.fetchConversationIfUnavailable(); + }, + }, mounted() { this.$store.dispatch('agents/get'); this.initialize(); diff --git a/app/javascript/dashboard/store/modules/contactConversations.js b/app/javascript/dashboard/store/modules/contactConversations.js index 50bbb4f99..9c9f03016 100644 --- a/app/javascript/dashboard/store/modules/contactConversations.js +++ b/app/javascript/dashboard/store/modules/contactConversations.js @@ -66,9 +66,6 @@ export const actions = { id: contactId, data: response.data.payload, }); - commit(types.default.SET_ALL_CONVERSATION, response.data.payload, { - root: true, - }); commit(types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG, { isFetching: false, }); diff --git a/app/javascript/dashboard/store/modules/specs/contactConversations/actions.spec.js b/app/javascript/dashboard/store/modules/specs/contactConversations/actions.spec.js index 3846d4aa7..0de32311b 100644 --- a/app/javascript/dashboard/store/modules/specs/contactConversations/actions.spec.js +++ b/app/javascript/dashboard/store/modules/specs/contactConversations/actions.spec.js @@ -19,7 +19,6 @@ describe('#actions', () => { types.default.SET_CONTACT_CONVERSATIONS, { id: 1, data: conversationList }, ], - [types.default.SET_ALL_CONVERSATION, conversationList, { root: true }], [ types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG, { isFetching: false },