mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fix flash bug (#1456)
This commit is contained in:
parent
5a606422f7
commit
0c8537a1f9
1 changed files with 1 additions and 3 deletions
|
|
@ -30,9 +30,7 @@ const FlashMessage = ({
|
|||
|
||||
// Success alerts will not be visible after 4 seconds
|
||||
if (alertType === "success") {
|
||||
setTimeout(function () {
|
||||
document.getElementById(`${klass}`).style.display = "none";
|
||||
}, 4000);
|
||||
setTimeout(onRemoveFlash, 4000);
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue