diff --git a/x-pack/plugins/stack_connectors/public/connector_types/pagerduty/links_list.tsx b/x-pack/plugins/stack_connectors/public/connector_types/pagerduty/links_list.tsx index 941105b6f97b3..741f184acbcf4 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/pagerduty/links_list.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/pagerduty/links_list.tsx @@ -62,9 +62,9 @@ export const LinksList: React.FC = ({ = ({ index={index} editAction={(key, value, actionIndex) => { const newLinks = [...links]; - newLinks[currentLinkIndex] = { text: link.text, href: value }; + newLinks[currentLinkIndex] = { href: link.href, text: value }; editAction('links', newLinks, actionIndex); }} messageVariables={messageVariables} - paramsProperty={'linksHref'} - inputTargetValue={link.href} + paramsProperty={'linksText'} + inputTargetValue={link.text} /> = ({ index={index} editAction={(key, value, actionIndex) => { const newLinks = [...links]; - newLinks[currentLinkIndex] = { href: link.href, text: value }; + newLinks[currentLinkIndex] = { text: link.text, href: value }; editAction('links', newLinks, actionIndex); }} messageVariables={messageVariables} - paramsProperty={'linksText'} - inputTargetValue={link.text} + paramsProperty={'linksHref'} + inputTargetValue={link.href} />