Skip to content

Commit

Permalink
Lets see if this is the last error
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 26, 2024
1 parent 79b64bd commit a762765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default function Timeline(props: TimelineProps) {
// the timeline.
let newSelectedDay; // needed for the interval
if (!selectedDay || !isWithinInterval(selectedDay, { start, end })) {
const maxDate = max(successDatasets.map((d) => d.data.domain.last));
const maxDate = max(successDatasets.map((d) => d.data.domain.last) as Date[]);
setSelectedDay(maxDate);
newSelectedDay = maxDate;
} else {
Expand Down

0 comments on commit a762765

Please sign in to comment.