From be1677afd8a8798fd2e7ef414df75f25a5cef2c6 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 17 Oct 2023 14:33:58 -0600 Subject: [PATCH] Collapse ongoing when props are set --- web/src/routes/Events.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsx index ffc35dc3e..d536468c7 100644 --- a/web/src/routes/Events.jsx +++ b/web/src/routes/Events.jsx @@ -94,7 +94,7 @@ export default function Events({ path, ...props }) { showDeleteFavorite: false, }); - const [showInProgress, setShowInProgress] = useState(true); + const [showInProgress, setShowInProgress] = useState((props.event || props.camera || props.label) == null); const eventsFetcher = useCallback( (path, params) => {