@eeacms/volto-eea-map 0.1.15 → 0.1.16

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,8 +4,15 @@ 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.16](https://github.com/eea/volto-eea-map/compare/0.1.15...0.1.16)
8
+
9
+ - faster update q params for view/edit [`a2d64fb`](https://github.com/eea/volto-eea-map/commit/a2d64fb1112bc129d3183403649a0e5dde822745)
10
+
7
11
  #### [0.1.15](https://github.com/eea/volto-eea-map/compare/0.1.14...0.1.15)
8
12
 
13
+ > 26 August 2022
14
+
15
+ - Quick fix [`#15`](https://github.com/eea/volto-eea-map/pull/15)
9
16
  - more space for button [`8fa6a3b`](https://github.com/eea/volto-eea-map/commit/8fa6a3b230cd835d0fbcc4881b14d51d318b91be)
10
17
  - eslint happy [`30b41d2`](https://github.com/eea/volto-eea-map/commit/30b41d2d18fcf2d195cdd08a2b6b9c78e6a303bb)
11
18
  - better update [`a1ca2f5`](https://github.com/eea/volto-eea-map/commit/a1ca2f51d1f24d932ad03fe61b5a4a564b491873)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-map",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "@eeacms/volto-eea-map: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -22,6 +22,7 @@ const Edit = (props) => {
22
22
  props.getContent(data.vis_url, null, id);
23
23
  // eslint-disable-next-line react-hooks/exhaustive-deps
24
24
  }, [data.vis_url]);
25
+
25
26
  React.useEffect(() => {
26
27
  if (
27
28
  !data.data_query_params ||
@@ -24,7 +24,9 @@ const View = (props) => {
24
24
  }, [vis_url, enable_queries]);
25
25
 
26
26
  React.useEffect(() => {
27
- const query_params = props?.data?.data_query_params;
27
+ const query_params = isEdit
28
+ ? props.data?.data_query_params
29
+ : props?.data_query;
28
30
  var altMapData = { ...map_visualization };
29
31
 
30
32
  if (