design-comuni-plone-theme 8.4.2 → 8.4.3

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
@@ -1,5 +1,17 @@
1
1
 
2
2
 
3
+ ## [8.4.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.4.2...v8.4.3) (2023-08-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix querystringresults to work properly in megamenu ([#304](https://github.com/RedTurtle/design-comuni-plone-theme/issues/304)) ([79687c0](https://github.com/RedTurtle/design-comuni-plone-theme/commit/79687c0c75846b5bbe40dab509ccb0cbad6aa10f))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * updated publiccode ([ff9f57b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ff9f57b5c07411835b2d6cf5cc20c78858faa182))
14
+
3
15
  ## [8.4.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.4.1...v8.4.2) (2023-08-24)
4
16
 
5
17
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "8.4.2",
5
+ "version": "8.4.3",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2023-08-24'
230
+ releaseDate: '2023-08-25'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.4.2
232
+ softwareVersion: 8.4.3
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -61,13 +61,13 @@ export default function withQuerystringResults(WrappedComponent) {
61
61
  //properties: content,
62
62
  properties,
63
63
  path,
64
- variation,
64
+ //variation,
65
65
  isEditMode,
66
66
  } = props;
67
67
  const content = useSelector((state) => state.content.data);
68
68
  const { settings } = config;
69
69
  const querystring = data.querystring || data; // For backwards compat with data saved before Blocks schema
70
- const subrequestID = content.UID + '-' + id;
70
+ const subrequestID = content?.UID + '-' + id;
71
71
  const { b_size = settings.defaultPageSize } = querystring;
72
72
  const [firstLoading, setFirstLoading] = React.useState(true);
73
73
  // save the path so it won't trigger dispatch on eager router location change
@@ -186,7 +186,7 @@ export default function withQuerystringResults(WrappedComponent) {
186
186
  doSearch(data);
187
187
  }
188
188
  /* eslint-disable react-hooks/exhaustive-deps */
189
- }, [data]);
189
+ }, [data, content]);
190
190
 
191
191
  const doSearch = (data = { querystring: { query: [] } }, page = 1) => {
192
192
  let _dataQuerystring = data?.querystring ?? data; //Backward compatibility before blockSchema