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 || "");
|
||||
|
||||
@@ -258,6 +258,14 @@ export interface MessageDetail {
|
||||
address: string;
|
||||
name: string;
|
||||
}>;
|
||||
cc?: Array<{
|
||||
address: string;
|
||||
name: string;
|
||||
}>;
|
||||
bcc?: Array<{
|
||||
address: string;
|
||||
name: string;
|
||||
}>;
|
||||
subject: string;
|
||||
messageId: string;
|
||||
date: string;
|
||||
|
||||
Reference in New Issue
Block a user