@eeacms/volto-arcgis-block 0.1.331 → 0.1.332

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,8 @@ 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.332](https://github.com/eea/volto-arcgis-block/compare/0.1.331...0.1.332) - 21 January 2025
8
+
7
9
  ### [0.1.331](https://github.com/eea/volto-arcgis-block/compare/0.1.330...0.1.331) - 17 January 2025
8
10
 
9
11
  ### [0.1.330](https://github.com/eea/volto-arcgis-block/compare/0.1.329...0.1.330) - 16 January 2025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.331",
3
+ "version": "0.1.332",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -4221,7 +4221,6 @@ class MenuWidget extends React.Component {
4221
4221
  // if (document.getElementById('select-family')) {
4222
4222
  // familyFilter = document.getElementById('select-family').text;
4223
4223
  // }
4224
- let checkedLayers = JSON.parse(sessionStorage.getItem('checkedLayers'));
4225
4224
  for (let index = 0; index < this.compCfg.length; index++) {
4226
4225
  let componentFound = false;
4227
4226
  let componentChecked = false;
@@ -4239,10 +4238,10 @@ class MenuWidget extends React.Component {
4239
4238
  let datasetElem = document.querySelector(
4240
4239
  '[datasetid="' + dataset.DatasetId + '"]',
4241
4240
  );
4242
- for (let l = 0; l < checkedLayers?.length; l++) {
4241
+ for (let l = 0; l < Object.keys(this.activeLayersJSON).length; l++) {
4243
4242
  if (
4244
4243
  dataset.DatasetTitle ===
4245
- this.layers[checkedLayers[l]].DatasetTitle
4244
+ this.layers[Object.keys(this.activeLayersJSON)[l]].DatasetTitle
4246
4245
  ) {
4247
4246
  componentChecked = true;
4248
4247
  productChecked = true;