fix: 新建会话: 邮件地址填充

2.0/email-builder
Lei OT 11 months ago
parent 625a2e81e0
commit 41a4ef8d5d

@ -97,8 +97,7 @@ export const ConversationItemFormModal = ({ open, onCreate, onCancel, initialVal
wa_id: _initialValues?.whatsapp_phone_number || _initialValues?.wa_id || '',
name: _initialValues?.whatsapp_name || _initialValues?.name || '',
remark: _initialValues?.conversation_memo || '',
// TODO
email: _initialValues?.channels?.email || '',
email: _initialValues?.email || _initialValues?.channels?.email || '',
is_new: _initialValues?.is_new ?? true,
});

@ -144,7 +144,7 @@ const CustomerProfile = () => {
size={"small"}
onClick={() => {
setNewChatModalVisible(true);
setNewChatFormValues(prev => ({ ...prev, phone_number: customerDetail.whatsapp_phone_number, name: customerDetail.name, is_current_order: true }));
setNewChatFormValues((prev) => ({ ...prev, phone_number: customerDetail.whatsapp_phone_number, name: customerDetail.name, email: customerDetail.email, is_current_order: true }))
}}>
{customerDetail.whatsapp_phone_number}
</Button>

Loading…
Cancel
Save