SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Refactor Chats Component Structure
Salman-Ahamededcdd58bbafd
diff --git a/packages/app/src/react/features/ai-chat/components/chats.tsx b/packages/app/src/react/features/ai-chat/components/chats.tsxindex e21e0ced..c426047d 100644--- a/packages/app/src/react/features/ai-chat/components/chats.tsx+++ b/packages/app/src/react/features/ai-chat/components/chats.tsx@@ -66,22 +66,15 @@ export const Chats: FC<MessagesProps> = (props) => {const retry = isRetrying && isLast;return (- <div key={i}>- <Chat- {...message}- avatar={avatar}- isRetrying={retry}- isError={message.isError}- onRetryClick={onRetryClick}- scrollToBottom={smartScrollToBottom}- />-- {/* {retry && (- <button onClick={retryLastMessage} className="pt-1.5">- Retry- </button>- )} */}- </div>+ <Chat+ key={i}+ {...message}+ avatar={avatar}+ isRetrying={retry}+ isError={message.isError}+ onRetryClick={onRetryClick}+ scrollToBottom={smartScrollToBottom}+ />);})}</div>