Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Show date if dataDate does not exist on timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
srezacova committed Sep 24, 2021
1 parent cc43155 commit 47f99f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/screens/Map/TimeSeriesSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ const debounceSourceChange = debounce(changeModifiedLayerSource, 200);
const TimeSeriesSlider = ({ availableDates, modifiedLayer }) => {
const marks = [];
const labels = [];
const { dataDate } = availableDates[0];
let dataDate;

for (let i = 0; i < availableDates.length; i++) {
dataDate = availableDates[i].dataDate;
if (i === 0 || i === availableDates.length - 1) {
if (dataDate) {
marks.push({
Expand Down

0 comments on commit 47f99f8

Please sign in to comment.