fix build
This commit is contained in:
@@ -48,15 +48,21 @@ export const useNewMessage = () => {
|
||||
useEffect(() => {
|
||||
if (draftDetail) {
|
||||
const toEmailsList =
|
||||
draftDetail.to?.map((recipient) => recipient.address) || [];
|
||||
draftDetail.to?.map(
|
||||
(recipient: { address: string; name: string }) => recipient.address
|
||||
) || [];
|
||||
setToEmails(toEmailsList);
|
||||
|
||||
const ccEmailsList =
|
||||
draftDetail.cc?.map((recipient) => recipient.address) || [];
|
||||
draftDetail.cc?.map(
|
||||
(recipient: { address: string; name: string }) => recipient.address
|
||||
) || [];
|
||||
setCcEmails(ccEmailsList);
|
||||
|
||||
const bccEmailsList =
|
||||
draftDetail.bcc?.map((recipient) => recipient.address) || [];
|
||||
draftDetail.bcc?.map(
|
||||
(recipient: { address: string; name: string }) => recipient.address
|
||||
) || [];
|
||||
setBccEmails(bccEmailsList);
|
||||
|
||||
setSubject(draftDetail.subject || "");
|
||||
|
||||
Reference in New Issue
Block a user