From b6f6f187fd31415216db1cbb98e98f23f518bba2 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sat, 7 Dec 2024 16:27:37 -0500 Subject: [PATCH] fix: small bug stopped collapse from happen when no provider selected --- app/components/chat/BaseChat.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index da4d0c9..411da94 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -476,6 +476,7 @@ export const BaseChat = React.forwardRef( 0 || isStreaming || uploadedFiles.length > 0} isStreaming={isStreaming} + disabled={enabledProviders.length === 0} onClick={(event) => { if (isStreaming) { handleStop?.(); @@ -535,6 +536,7 @@ export const BaseChat = React.forwardRef( !isModelSettingsCollapsed, })} onClick={() => setIsModelSettingsCollapsed(!isModelSettingsCollapsed)} + disabled={enabledProviders.length === 0} >
{isModelSettingsCollapsed ? {model} : }