diff --git a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx index 7e9db4dce8..ccdfcb624b 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx @@ -20,7 +20,7 @@ const ExecutedAction = ({ i18nKey="nodes.humanInput.userActions.triggered" ns="workflow" components={{ strong: }} - values={{ actionName: executedAction.title }} + values={{ actionName: executedAction.id }} /> diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx index f4e5aa8ab5..8881bcf414 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx @@ -19,7 +19,7 @@ type Props = { value: RecipientItem[] list: Member[] onDelete: (recipient: RecipientItem) => void - onSelect: (value: any) => void + onSelect: (value: string) => void onAdd: (email: string) => void disabled?: boolean } @@ -69,7 +69,7 @@ const EmailInput = ({ setOpen(true) } - const handleSelect = (value: any) => { + const handleSelect = (value: string) => { setSearchKey('') setOpen(false) onSelect(value) @@ -89,10 +89,13 @@ const EmailInput = ({ return if (value.some(item => item.email === emailAddress)) return - if (list.some(item => item.email === emailAddress)) - onSelect(emailAddress) - else + if (list.some(item => item.email === emailAddress)) { + const item = list.find(item => item.email === emailAddress)! + onSelect(item.id) + } + else { onAdd(emailAddress) + } setSearchKey('') setOpen(false) } diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx index 7f7632a3a7..aa3cb126ec 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx @@ -122,7 +122,7 @@ const EmailSenderModal = ({ return varInputs }, [availableNodes, config?.body, formContent, nodesOutputVars]) - const [inputs, setInputs] = useState>({}) + const [inputs, setInputs] = useState>({}) const [collapsed, setCollapsed] = useState(true) const [sendingEmail, setSendingEmail] = useState(false) const [done, setDone] = useState(false) @@ -193,7 +193,7 @@ const EmailSenderModal = ({ )} - {(onlySpecificUsers || combinedRecipients) && ( + {(onlySpecificUsers || combinedRecipients) && !debugEnabled && (
)}
- {(onlySpecificUsers || combinedRecipients) && ( + {(onlySpecificUsers || combinedRecipients) && !debugEnabled && ( <>
> = ({
{inputs.user_actions.map((action, index) => ( handleUserActionChange(index, data)} onDelete={handleUserActionDelete} diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index 06919b5779..304548b8e4 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -3392,11 +3392,6 @@ "count": 5 } }, - "app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx": { - "ts/no-explicit-any": { - "count": 2 - } - }, "app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx": { "ts/no-explicit-any": { "count": 2 @@ -3409,7 +3404,7 @@ }, "app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx": { "ts/no-explicit-any": { - "count": 3 + "count": 2 } }, "app/components/workflow/nodes/human-input/components/form-content-preview.tsx": {