mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix message timeout
This commit is contained in:
@@ -269,6 +269,7 @@ const Flow: React.FC = () => {
|
||||
const runAgent = async () => {
|
||||
if (nodes.length === 0) {
|
||||
setFlashMessage("Please add nodes before pressing run");
|
||||
setTimeout(() => setFlashMessage(null), 3000); // Ensure the flash message disappears after 3 seconds
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user