Skip to content

Commit bc25ea2

Browse files
authored
fix(deployed-chat): fix deployed chat page crash (#1891)
1 parent 68aaede commit bc25ea2

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

apps/sim/app/chat/components/input/input.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -191,26 +191,28 @@ export const ChatInput: React.FC<{
191191
// Voice-only mode interface (for voice-first UI)
192192
if (voiceOnly) {
193193
return (
194-
<div className='flex items-center justify-center'>
195-
{/* Voice Input Only */}
196-
{isSttAvailable && (
197-
<Tooltip.Root>
198-
<Tooltip.Trigger asChild>
199-
<div>
200-
<VoiceInput onVoiceStart={handleVoiceStart} disabled={isStreaming} large={true} />
201-
</div>
202-
</Tooltip.Trigger>
203-
<Tooltip.Content side='top'>
204-
<p>Start voice conversation</p>
205-
</Tooltip.Content>
206-
</Tooltip.Root>
207-
)}
208-
</div>
194+
<Tooltip.Provider>
195+
<div className='flex items-center justify-center'>
196+
{/* Voice Input Only */}
197+
{isSttAvailable && (
198+
<Tooltip.Root>
199+
<Tooltip.Trigger asChild>
200+
<div>
201+
<VoiceInput onVoiceStart={handleVoiceStart} disabled={isStreaming} large={true} />
202+
</div>
203+
</Tooltip.Trigger>
204+
<Tooltip.Content side='top'>
205+
<p>Start voice conversation</p>
206+
</Tooltip.Content>
207+
</Tooltip.Root>
208+
)}
209+
</div>
210+
</Tooltip.Provider>
209211
)
210212
}
211213

212214
return (
213-
<>
215+
<Tooltip.Provider>
214216
<div className='fixed right-0 bottom-0 left-0 flex w-full items-center justify-center bg-gradient-to-t from-white to-transparent px-4 pb-4 text-black md:px-0 md:pb-4'>
215217
<div ref={wrapperRef} className='w-full max-w-3xl md:max-w-[748px]'>
216218
{/* Error Messages */}
@@ -462,6 +464,6 @@ export const ChatInput: React.FC<{
462464
</motion.div>
463465
</div>
464466
</div>
465-
</>
467+
</Tooltip.Provider>
466468
)
467469
}

0 commit comments

Comments
 (0)