fix: removes delay for running flow skeleton (#4679)

Update rendering logic for chat messages && running flow
This commit is contained in:
anovazzi1 2024-11-19 10:56:30 -03:00 committed by GitHub
commit d28c7f4f30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ export default function ChatView({
onDrop={onDrop}
>
<div ref={messagesRef} className="chat-message-div">
{chatHistory?.length > 0 ? (
{lockChat || chatHistory?.length > 0 ? (
chatHistory.map((chat, index) => (
<ChatMessage
setLockChat={setLockChat}
@ -181,7 +181,6 @@ export default function ChatView({
ref={ref}
>
{lockChat &&
chatHistory.length > 0 &&
!(chatHistory[chatHistory.length - 1]?.category === "error") &&
flowRunningSkeletonMemo}
</div>