From 66751b71dd34d10741175a7cc2da389bcf50bc1d Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Thu, 13 Jul 2023 15:47:33 -0700 Subject: [PATCH] fix: Fix issue `null is not iterable` (#7521) --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index f6474d9cd..c96afedd6 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -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,