Fix: Error when assigns a conversation to user (#1926)

This commit is contained in:
Nithin David Thomas 2021-03-19 12:55:05 +05:30 committed by GitHub
parent 54d578676b
commit 6afa1fb556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
};