fix: removes delay for running flow skeleton (#4679)
Update rendering logic for chat messages && running flow
This commit is contained in:
parent
50defedfe6
commit
d28c7f4f30
1 changed files with 1 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ export default function ChatView({
|
||||||
onDrop={onDrop}
|
onDrop={onDrop}
|
||||||
>
|
>
|
||||||
<div ref={messagesRef} className="chat-message-div">
|
<div ref={messagesRef} className="chat-message-div">
|
||||||
{chatHistory?.length > 0 ? (
|
{lockChat || chatHistory?.length > 0 ? (
|
||||||
chatHistory.map((chat, index) => (
|
chatHistory.map((chat, index) => (
|
||||||
<ChatMessage
|
<ChatMessage
|
||||||
setLockChat={setLockChat}
|
setLockChat={setLockChat}
|
||||||
|
|
@ -181,7 +181,6 @@ export default function ChatView({
|
||||||
ref={ref}
|
ref={ref}
|
||||||
>
|
>
|
||||||
{lockChat &&
|
{lockChat &&
|
||||||
chatHistory.length > 0 &&
|
|
||||||
!(chatHistory[chatHistory.length - 1]?.category === "error") &&
|
!(chatHistory[chatHistory.length - 1]?.category === "error") &&
|
||||||
flowRunningSkeletonMemo}
|
flowRunningSkeletonMemo}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue