lint and build fixes

This commit is contained in:
phact 2025-08-20 11:26:05 -04:00
parent f2b407b4c8
commit 03215ddf43
2 changed files with 6 additions and 2 deletions

View file

@ -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<HTMLFormElement>)
// Trigger form submission by finding the form and calling submit
const form = e.currentTarget.closest('form')
if (form) {
form.requestSubmit()
}
}
}
}}

View file

@ -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