Skip to content

Commit

Permalink
CLMS-BUG-COUNTRIES-DOWNLOAD (bug): countries radio button for areas o…
Browse files Browse the repository at this point in the history
…utside of europe fixed
  • Loading branch information
ujbolivar committed May 27, 2024
1 parent d81b6bc commit 7a1dead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MapViewer/MenuWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const AddCartItem = ({
if (areaData) {
area.type = 'nuts';
if (areaData.geometry.type === 'polygon') {
if ('countries'.includes(areaData.layer.id)) {
//if ('countries'.includes(areaData.layer.id)) {
if (areaData.attributes.ISO_2DIGIT !== undefined) {
area.value = areaData.attributes.ISO_2DIGIT;
} else {
area.value = areaData.attributes.NUTS_ID;
Expand Down

0 comments on commit 7a1dead

Please sign in to comment.