diff --git a/frontend/src/app/chat/page.tsx b/frontend/src/app/chat/page.tsx index db6bc36d..12620643 100644 --- a/frontend/src/app/chat/page.tsx +++ b/frontend/src/app/chat/page.tsx @@ -706,6 +706,7 @@ function ChatPage() { } } + const handleSubmit = async (e: React.FormEvent) => { e.preventDefault() if (!input.trim() || loading) return @@ -1233,7 +1234,11 @@ function ChatPage() { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault() if (input.trim() && !loading) { - handleSubmit(e as React.FormEvent) + // Trigger form submission by finding the form and calling submit + const form = e.currentTarget.closest('form') + if (form) { + form.requestSubmit() + } } } }} diff --git a/frontend/src/app/settings/page.tsx b/frontend/src/app/settings/page.tsx index 3dfd583b..9efe8d11 100644 --- a/frontend/src/app/settings/page.tsx +++ b/frontend/src/app/settings/page.tsx @@ -13,7 +13,6 @@ import { useTask } from "@/contexts/task-context" import { useAuth } from "@/contexts/auth-context" import { FileUploadArea } from "@/components/file-upload-area" -type FacetBucket = { key: string; count: number } interface Connector { id: string