feat: add notification timeout

This commit is contained in:
RohitR311
2024-11-22 23:40:05 +05:30
parent 101acd49e4
commit 714c77e0c4

View File

@@ -118,7 +118,9 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
handleStart(robot); // Inform parent about the updated robot
handleClose(); // Close the modal
window.location.reload();
setTimeout(() => {
window.location.reload();
}, 1000);
} else {
notify('error', 'Failed to update the robot. Please try again.');
}