diff --git a/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx b/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx index 8f45becd1c58d..11bbbcbcd724c 100644 --- a/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx +++ b/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx @@ -43,7 +43,8 @@ interface AutofixStartBoxProps { function AutofixStartBox({onSend, groupId}: AutofixStartBoxProps) { const [message, setMessage] = useState(''); - const send = () => { + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); onSend(message); }; @@ -63,37 +64,39 @@ function AutofixStartBox({onSend, groupId}: AutofixStartBoxProps) { Autofix

Work together with Autofix to find the root cause and fix the issue.

- - setMessage(e.target.value)} - placeholder={'(Optional) Share helpful context here...'} - /> - - - - - - - +
+ + setMessage(e.target.value)} + placeholder={'(Optional) Share helpful context here...'} + /> + + + + + + + +
);