fix: 新邮件: 收件人从会话读取

2.0/email-builder
Lei OT 10 months ago
parent 37adbdb075
commit 0dea233af6

@ -44,7 +44,7 @@ const EmailNewBtn = ({ ...props }) => {
const openEditor = (email_addr) => { const openEditor = (email_addr) => {
setOpen(true) setOpen(true)
setFromEmail(email_addr) setFromEmail(email_addr)
setToEmail(customerDetail?.email || '') setToEmail(currentConversation?.channels?.email || customerDetail?.email || '')
} }
return ( return (
<ConfigProvider theme={{ token: { colorPrimary: '#6366f1' } }}> <ConfigProvider theme={{ token: { colorPrimary: '#6366f1' } }}>

Loading…
Cancel
Save