From eb2592c0bada822759424d8a608e82624b7d6ea1 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 21 Feb 2022 08:05:00 -0700 Subject: [PATCH] Make page reload so retain button state sticks --- web/src/routes/Event.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/routes/Event.jsx b/web/src/routes/Event.jsx index 35e954f70..add431048 100644 --- a/web/src/routes/Event.jsx +++ b/web/src/routes/Event.jsx @@ -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) {