Commit 8e5eb489 authored by Kantz's avatar Kantz
Browse files

laden auch am start des Sokrates Modus

parent 2e26ac93
......@@ -392,6 +392,7 @@ export default function ChatPage() {
}
let cancelled = false;
setIsSending(true);
void (async () => {
try {
const response = await fetch(`/api/chat/bootstrap-socratic`, {
......@@ -442,11 +443,16 @@ export default function ChatPage() {
]);
}
void error;
} finally {
if (!cancelled) {
setIsSending(false);
}
}
})();
return () => {
cancelled = true;
setIsSending(false);
};
}, [
chatSessionId,
......@@ -748,6 +754,7 @@ export default function ChatPage() {
setMessages(initialMessages);
setDraft("");
resetDraftHistoryNavigation();
setIsSending(false);
setDirectChildren([]);
setTaskChildren([]);
setIndirectChildren([]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment