Make page reload so retain button state sticks

This commit is contained in:
Nick Mowen 2022-02-21 08:05:00 -07:00
parent f18aeac512
commit eb2592c0ba

View File

@ -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) {