@eeacms/volto-bise-policy 1.1.1 → 1.2.0
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,11 +4,20 @@ 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.2.0](https://github.com/eea/volto-bise-policy/compare/1.1.1...1.2.0) - 16 June 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: redirect to error page if id_eunis is 0 on species page [Miu Razvan - [`383b20d`](https://github.com/eea/volto-bise-policy/commit/383b20d9ce870d8b79d671703476423610077183)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change(footer): complete logosHeader option for footer [David Ichim - [`2874bad`](https://github.com/eea/volto-bise-policy/commit/2874baddf237b7ed6db94b473e1385c3baafd95a)]
|
|
16
|
+
|
|
7
17
|
### [1.1.1](https://github.com/eea/volto-bise-policy/compare/1.1.0...1.1.1) - 12 June 2023
|
|
8
18
|
|
|
9
19
|
#### :hammer_and_wrench: Others
|
|
10
20
|
|
|
11
|
-
- enable volto-eea-map block [Miu Razvan - [`d6ef813`](https://github.com/eea/volto-bise-policy/commit/d6ef813e9f12894ecb2d3ddff3aacd9ff9640bc5)]
|
|
12
21
|
- test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`9122957`](https://github.com/eea/volto-bise-policy/commit/9122957938d28c8052c0057c12fcaaa0c4957267)]
|
|
13
22
|
### [1.1.0](https://github.com/eea/volto-bise-policy/compare/1.0.12...1.1.0) - 9 June 2023
|
|
14
23
|
|
package/package.json
CHANGED
|
@@ -138,6 +138,13 @@ const EEAHeader = ({ token, history, subsite, content, ...props }) => {
|
|
|
138
138
|
}
|
|
139
139
|
}, [token, dispatch, pathname, previousToken]);
|
|
140
140
|
|
|
141
|
+
React.useEffect(() => {
|
|
142
|
+
if (isN2KSpecies && [0, '0'].includes(params.id_eunis)) {
|
|
143
|
+
history.push('/species-name-or-error-code');
|
|
144
|
+
}
|
|
145
|
+
/* eslint-disable-next-line */
|
|
146
|
+
}, [isN2KSpecies, params]);
|
|
147
|
+
|
|
141
148
|
return (
|
|
142
149
|
<Header menuItems={items}>
|
|
143
150
|
{isHomePageInverse && <BodyClass className="homepage homepage-inverse" />}
|
package/src/index.js
CHANGED