Fix plus menu not showing (#5606)

* Set end time for download event

* Set the value
This commit is contained in:
Nicolas Mowen 2023-03-03 16:44:58 -07:00 committed by GitHub
parent 7ed715b371
commit c4ebafe777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ export default function Events({ path, ...props }) {
has_clip: false,
has_snapshot: false,
plus_id: undefined,
end_time: null,
});
const [deleteFavoriteState, setDeleteFavoriteState] = useState({
deletingFavoriteEventId: null,
@ -190,6 +191,7 @@ export default function Events({ path, ...props }) {
has_clip: event.has_clip,
has_snapshot: event.has_snapshot,
plus_id: event.plus_id,
end_time: event.end_time,
}));
downloadButton.current = e.target;
setState({ ...state, showDownloadMenu: true });