fix: Fix issue null is not iterable (#7521)

This commit is contained in:
Pranav Raj S
2023-07-13 15:47:33 -07:00
committed by GitHub
parent 7e415fbee3
commit 66751b71dd

View File

@@ -1052,7 +1052,7 @@ export default {
// Retrieve the email of the current conversation's sender
const conversationContact = this.currentChat?.meta?.sender?.email || '';
let cc = [...emailAttributes.cc] || [];
let cc = emailAttributes.cc ? [...emailAttributes.cc] : [];
let to = [];
// there might be a situation where the current conversation will include a message from a third person,