diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index c5fd8b54..5a750e8b 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -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 (