@eeacms/volto-clms-theme 1.1.4 → 1.1.5

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,11 @@ 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
+ ### [1.1.5](https://github.com/eea/volto-clms-theme/compare/1.1.4...1.1.5) - 1 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - set default value for layer when loading into the cart [Mikel Larreategi - [`d443272`](https://github.com/eea/volto-clms-theme/commit/d443272c0d87a7a56e1b3ff2131ada9625ec05ce)]
7
12
  ### [1.1.4](https://github.com/eea/volto-clms-theme/compare/1.1.3...1.1.4) - 31 May 2023
8
13
 
9
14
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -121,6 +121,10 @@ export const getCartObjectFromMapviewer = (
121
121
  task_in_progress: false,
122
122
  projection: dataset_data.projection || projections[0],
123
123
  timeExtent: local_cart_data.timeExtent || [],
124
+ layer:
125
+ type_options.length > 0 && type_options[0].layers.length > 0
126
+ ? type_options[0].layers[0]
127
+ : null,
124
128
  };
125
129
  };
126
130