Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboucher committed Jan 15, 2025
1 parent f37b616 commit 32b8ad7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/MapView/DateSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ const DateSelector = memo(() => {
}
const time = date.getTime();
const selectedIndex = findDateIndex(selectableDates, date.getTime());
// eslint-disable-next-line no-console
console.log({ date, time, selectedIndex });
checkSelectedDateForLayerSupport(date.getTime());
if (
selectedIndex < 0 ||
Expand Down Expand Up @@ -396,6 +398,10 @@ const DateSelector = memo(() => {
isUpdatingHistory: boolean,
) => {
const selectedIndex = findDateIndex(availableDates, date);
// eslint-disable-next-line no-console
console.log('setDatePosition inc/decrement', increment);
// eslint-disable-next-line no-console
console.log({ selectedIndex });
if (availableDates[selectedIndex + increment]) {
updateStartDate(
new Date(availableDates[selectedIndex + increment]),
Expand Down

0 comments on commit 32b8ad7

Please sign in to comment.