File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
client/src/app/(main)/understand Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ function UnderstandPageContent() {
72
72
const [ isTyping , setIsTyping ] = useState ( false ) ;
73
73
const [ statusMessage , setStatusMessage ] = useState ( '' ) ;
74
74
75
- const [ isConversationLoading , setIsConversationLoading ] = useState ( false ) ;
76
75
const [ isSessionLoading , setIsSessionLoading ] = useState ( true ) ;
77
76
78
77
const messagesEndRef = useRef < HTMLDivElement > ( null ) ;
@@ -117,7 +116,6 @@ function UnderstandPageContent() {
117
116
} , [ authLoading , user ] ) ;
118
117
119
118
const fetchMessages = useCallback ( async ( id : string ) => {
120
- setIsConversationLoading ( true ) ;
121
119
try {
122
120
const response = await fetchFromApi ( `/api/conversation/${ id } ` ) ;
123
121
if ( response && response . messages ) {
@@ -129,7 +127,6 @@ function UnderstandPageContent() {
129
127
console . error ( "Error fetching messages:" , error ) ;
130
128
toast . error ( "Failed to load conversation history." ) ;
131
129
} finally {
132
- setIsConversationLoading ( false ) ;
133
130
setIsSessionLoading ( false ) ; // New line
134
131
}
135
132
} , [ ] ) ;
You can’t perform that action at this time.
0 commit comments