mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fix subsequent delete checkbox state (#2587)
This commit is contained in:
parent
4d2b098f39
commit
03d5de364d
2 changed files with 5 additions and 1 deletions
1
changes/issue-2525-resets-checkboxes-subsequent-deletes
Normal file
1
changes/issue-2525-resets-checkboxes-subsequent-deletes
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Bug Fix: All app table checkboxes reset after subsequent deletes
|
||||
|
|
@ -43,7 +43,10 @@ const FlashMessage = ({
|
|||
|
||||
if (alertType === "success" && isVisible) {
|
||||
// After 4 seconds, set hide to true.
|
||||
const timer = setTimeout(() => setHide(true), 4000);
|
||||
const timer = setTimeout(() => {
|
||||
setHide(true);
|
||||
onRemoveFlash(); // This function resets notifications which allows CoreLayout reset of selected rows
|
||||
}, 4000);
|
||||
// Return a cleanup function that will clear this reset, in case another render happens
|
||||
// after this. We want that render to set a new timeout (if needed).
|
||||
return () => clearTimeout(timer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue