Fix loading videos with no end time

pull/257/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 2698b7fd74
commit c1e20de813

@ -290,7 +290,7 @@ async function initializeVideoInfo() {
globalStartTimeString = wubloaderTimeFromDateTime(earliestStartTime); globalStartTimeString = wubloaderTimeFromDateTime(earliestStartTime);
} }
if (latestEndTime && latestEndTime.diff(eventEndTime).milliseconds > 0) { if (latestEndTime && eventEndTime && latestEndTime.diff(eventEndTime).milliseconds > 0) {
// If we're getting the time from a previous draft edit, we have seconds, so one minute is enough // If we're getting the time from a previous draft edit, we have seconds, so one minute is enough
latestEndTime = latestEndTime.plus({ minutes: 1 }); latestEndTime = latestEndTime.plus({ minutes: 1 });
globalEndTimeString = wubloaderTimeFromDateTime(latestEndTime); globalEndTimeString = wubloaderTimeFromDateTime(latestEndTime);

Loading…
Cancel
Save