From 03215ddf43644a7783f218eabf02134fd6fbb3a4 Mon Sep 17 00:00:00 2001 From: phact Date: Wed, 20 Aug 2025 11:26:05 -0400 Subject: [PATCH] lint and build fixes --- frontend/src/app/chat/page.tsx | 7 ++++++- frontend/src/app/settings/page.tsx | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) 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