@eeacms/volto-arcgis-block 0.1.282 → 0.1.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.283](https://github.com/eea/volto-arcgis-block/compare/0.1.282...0.1.283) - 27 May 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-BUG-COUNTRIES-DOWNLOAD (bug): countries radio button for areas outside of europe fixed. removed a commented line [Unai Bolivar - [`6197c7d`](https://github.com/eea/volto-arcgis-block/commit/6197c7ddb80b7e796d3e9800e7c652f6839009bc)]
12
+ - CLMS-BUG-COUNTRIES-DOWNLOAD (bug): countries radio button for areas outside of europe fixed [Unai Bolivar - [`7a1dead`](https://github.com/eea/volto-arcgis-block/commit/7a1deada9c70158f24fd799385544b43f3ab76bf)]
7
13
  ### [0.1.282](https://github.com/eea/volto-arcgis-block/compare/0.1.281...0.1.282) - 27 May 2024
8
14
 
9
15
  ### [0.1.281](https://github.com/eea/volto-arcgis-block/compare/0.1.280...0.1.281) - 21 May 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.282",
3
+ "version": "0.1.283",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -51,7 +51,7 @@ export const AddCartItem = ({
51
51
  if (areaData) {
52
52
  area.type = 'nuts';
53
53
  if (areaData.geometry.type === 'polygon') {
54
- if ('countries'.includes(areaData.layer.id)) {
54
+ if (areaData.attributes.ISO_2DIGIT !== undefined) {
55
55
  area.value = areaData.attributes.ISO_2DIGIT;
56
56
  } else {
57
57
  area.value = areaData.attributes.NUTS_ID;