feat: add notification timeout
This commit is contained in:
@@ -118,7 +118,9 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
handleStart(robot); // Inform parent about the updated robot
|
handleStart(robot); // Inform parent about the updated robot
|
||||||
handleClose(); // Close the modal
|
handleClose(); // Close the modal
|
||||||
|
|
||||||
window.location.reload();
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
notify('error', 'Failed to update the robot. Please try again.');
|
notify('error', 'Failed to update the robot. Please try again.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user