Skip to content

Commit 9c7d936

Browse files
Fix lag (#13)
Co-authored-by: cheng-tan <chengtan2013@gmail.com>
1 parent bb353c9 commit 9c7d936

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • frontend/src/components/views/chat

frontend/src/components/views/chat/chat.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ export default function ChatView({
947947
}
948948
};
949949

950+
if (!visible) {
951+
return null;
952+
}
953+
950954
return (
951955
<div className="text-primary h-[calc(100vh-100px)] bg-primary relative rounded flex-1 scroll w-full">
952956
{contextHolder}

0 commit comments

Comments
 (0)