diff --git a/client/src/components/Chat/Input/AudioRecorder.tsx b/client/src/components/Chat/Input/AudioRecorder.tsx index 30373a908a..3eaefcdcc8 100644 --- a/client/src/components/Chat/Input/AudioRecorder.tsx +++ b/client/src/components/Chat/Input/AudioRecorder.tsx @@ -11,13 +11,11 @@ export default memo(function AudioRecorder({ disabled, ask, methods, - textAreaRef, isSubmitting, }: { disabled: boolean; ask: TAskFunction; methods: ReturnType; - textAreaRef: React.RefObject; isSubmitting: boolean; }) { const { setValue, reset, getValues } = methods; @@ -82,10 +80,6 @@ export default memo(function AudioRecorder({ onTranscriptionComplete, ); - if (!textAreaRef.current) { - return null; - } - const handleStartRecording = async () => { existingTextRef.current = getValues('text') || ''; startRecording(); diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index c1efba72fc..baed7ba4a2 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -385,7 +385,6 @@ const ChatForm = memo(function ChatForm({