From 90a8e22996cfab25b1ec50296b0b1e33cb0c80cc Mon Sep 17 00:00:00 2001 From: Nikolay Martyanov Date: Mon, 1 Jan 2024 21:08:42 +0100 Subject: [PATCH] front: Update Region object properties in map component. 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 --- frontend/src/components/RegionMap.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/RegionMap.jsx b/frontend/src/components/RegionMap.jsx index c9432a7..29109be 100644 --- a/frontend/src/components/RegionMap.jsx +++ b/frontend/src/components/RegionMap.jsx @@ -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);