Skip to content

Commit a8c2071

Browse files
committed
Fix fast typing issue
1 parent b3ea4d6 commit a8c2071

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/src/components/common/ChatInputArea.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import _ from 'lodash'
1818

1919
interface ChatInputAreaProps {
2020
isRecording: boolean
21-
runTask: () => void
21+
runTask: (instructions: string) => void
2222
appEnabledStatus: {
2323
inputBox: boolean
2424
alert: {
@@ -59,7 +59,7 @@ const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputAreaProps>(
5959
const onKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
6060
if (e.key === 'Enter' && !e.shiftKey) {
6161
e.preventDefault()
62-
runTask()
62+
runTask(instructions)
6363
}
6464
}
6565

web/src/components/common/TaskUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const TaskUI = forwardRef<HTMLTextAreaElement>((_props, ref) => {
234234

235235
// updateDemoMode logic moved to ChatInputArea component
236236

237-
const runTask = async () => {
237+
const runTask = async (instructions: string) => {
238238
let toastTitle = ''
239239
let toastDescription = ''
240240
let preventRunTask = false

0 commit comments

Comments
 (0)