mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
dont freeze UI on error
This commit is contained in:
committed by
Thomas Krijnen
parent
252bd6f4f6
commit
d7de4f8df0
+1
-1
@@ -250,7 +250,7 @@ sendBtn.onclick = async () => {
|
|||||||
await runAgentTurn(text);
|
await runAgentTurn(text);
|
||||||
setBusy(false, "Ready");
|
setBusy(false, "Ready");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setBusy(true, "Error");
|
setBusy(false, "Error");
|
||||||
addMessage("assistant", `Error: ${e.message}`);
|
addMessage("assistant", `Error: ${e.message}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user