mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 10:37:11 +00:00
Collapse train of thought when completed during live stream
This commit is contained in:
parent
a0b00ce4a1
commit
512cf535e0
1 changed files with 5 additions and 5 deletions
|
@ -54,11 +54,11 @@ function TrainOfThoughtComponent(props: TrainOfThoughtComponentProps) {
|
|||
const lastIndex = props.trainOfThought.length - 1;
|
||||
const [collapsed, setCollapsed] = useState(props.completed);
|
||||
|
||||
// useEffect(() => {
|
||||
// if (props.completed) {
|
||||
// setCollapsed(true);
|
||||
// }
|
||||
// }), [props.completed];
|
||||
useEffect(() => {
|
||||
if (props.completed) {
|
||||
setCollapsed(true);
|
||||
}
|
||||
}, [props.completed]);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue