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

Fix timeline #71

Merged
merged 4 commits into from
Sep 28, 2021
Merged

Fix timeline #71

merged 4 commits into from
Sep 28, 2021

Conversation

srezacova
Copy link
Collaborator

Description

Fix timeline

How has this been tested?

  • Run ./start.sh, ./runinitialload
  • Check Daily Covid-19 cases per region layer timeline, if it looks correct

Types of changes

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@@ -80,22 +80,40 @@ const debounceSourceChange = debounce(changeModifiedLayerSource, 200);
const TimeSeriesSlider = ({ availableDates, modifiedLayer }) => {
const marks = [];
const labels = [];
const { dataDate } = availableDates[0];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this into the for cycle and iterate it, let { dataDate } = availableDates[i]; in case some entry doesn't have dataDate

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed:
@srezacova
Show date if dataDate does not exist on timeline
47f99f8

@srezacova srezacova requested a review from bariela September 24, 2021 09:57
@MartinJurcoGlina MartinJurcoGlina merged commit 982811a into main Sep 28, 2021
@MartinJurcoGlina MartinJurcoGlina deleted the fix-timeline branch September 28, 2021 12:47
@srezacova srezacova linked an issue Oct 5, 2021 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugfix: availableDates structure on frontend
2 participants