Fix: Add check for id on update conversation (#1966)

This commit is contained in:
Nithin David Thomas 2021-03-22 20:24:51 +05:30 committed by GitHub
parent 818f45916e
commit 43b5a435ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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