mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 10:49:00 +03:00
Make page reload so retain button state sticks
This commit is contained in:
@@ -86,7 +86,9 @@ export default function Event({ eventId, close, scrollRef }) {
|
||||
|
||||
if (success) {
|
||||
setIsRetained(!isRetained);
|
||||
window.location.reload(); // Need to reload page otherwise retain won't stick
|
||||
|
||||
// Need to reload page otherwise retain button state won't stick if event is collapsed and re-opened.
|
||||
window.location.reload();
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user