fix message timeout

This commit is contained in:
Bentlybro
2024-06-28 12:06:19 +01:00
parent 8357a4fbd0
commit dd8a6f9793

View File

@@ -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;
}