Skip to content

Commit

Permalink
front: Update Region object properties in map component.
Browse files Browse the repository at this point in the history
Refined the region object structure in MapComponent by updating 'hasSubregions'
property with actual data from the 'newRegion' and altering the TODO comments
to reflect the shift in scope for fetching region info and adding it to the
region object.

Issue: #186

Signed-off-by: Nikolay Martyanov <ohmspectator@gmail.com>
  • Loading branch information
OhmSpectator committed Jan 1, 2024
1 parent 8a2bf15 commit 90a8e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/RegionMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function MapComponent() {
const newSelectedRegion = {
id: clickedRegion.id,
name: clickedRegion.name,
info: null, // TODO: Fetch region info, issue #186
hasSubregions: null, // TODO: Fetch, issue #186
info: null, // TODO: Add info to the region object, do in a scope of Issue #196
hasSubregions: newRegion.hasSubregions,
};

setSelectedRegion(newSelectedRegion);
Expand Down

0 comments on commit 90a8e22

Please sign in to comment.