Collapse ongoing when props are set

This commit is contained in:
Nick Mowen 2023-10-17 14:33:58 -06:00
parent 089d8bcab1
commit be1677afd8

View File

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