Skip to content

Commit 511860d

Browse files
committed
remove isConversationLoading woohoo
1 parent 5ffbbd8 commit 511860d

File tree

1 file changed

+0
-3
lines changed
  • client/src/app/(main)/understand

1 file changed

+0
-3
lines changed

client/src/app/(main)/understand/page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ function UnderstandPageContent() {
7272
const [isTyping, setIsTyping] = useState(false);
7373
const [statusMessage, setStatusMessage] = useState('');
7474

75-
const [isConversationLoading, setIsConversationLoading] = useState(false);
7675
const [isSessionLoading, setIsSessionLoading] = useState(true);
7776

7877
const messagesEndRef = useRef<HTMLDivElement>(null);
@@ -117,7 +116,6 @@ function UnderstandPageContent() {
117116
}, [authLoading, user]);
118117

119118
const fetchMessages = useCallback(async (id: string) => {
120-
setIsConversationLoading(true);
121119
try {
122120
const response = await fetchFromApi(`/api/conversation/${id}`);
123121
if (response && response.messages) {
@@ -129,7 +127,6 @@ function UnderstandPageContent() {
129127
console.error("Error fetching messages:", error);
130128
toast.error("Failed to load conversation history.");
131129
} finally {
132-
setIsConversationLoading(false);
133130
setIsSessionLoading(false); // New line
134131
}
135132
}, []);

0 commit comments

Comments
 (0)