lint and build fixes
This commit is contained in:
parent
f2b407b4c8
commit
03215ddf43
2 changed files with 6 additions and 2 deletions
|
|
@ -706,6 +706,7 @@ function ChatPage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const handleSubmit = async (e: React.FormEvent) => {
|
const handleSubmit = async (e: React.FormEvent) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if (!input.trim() || loading) return
|
if (!input.trim() || loading) return
|
||||||
|
|
@ -1233,7 +1234,11 @@ function ChatPage() {
|
||||||
if (e.key === 'Enter' && !e.shiftKey) {
|
if (e.key === 'Enter' && !e.shiftKey) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if (input.trim() && !loading) {
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import { useTask } from "@/contexts/task-context"
|
||||||
import { useAuth } from "@/contexts/auth-context"
|
import { useAuth } from "@/contexts/auth-context"
|
||||||
import { FileUploadArea } from "@/components/file-upload-area"
|
import { FileUploadArea } from "@/components/file-upload-area"
|
||||||
|
|
||||||
type FacetBucket = { key: string; count: number }
|
|
||||||
|
|
||||||
interface Connector {
|
interface Connector {
|
||||||
id: string
|
id: string
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue