@eeacms/volto-eea-website-theme 4.3.5 → 4.3.6
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,14 @@ 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
|
-
### [4.3.
|
|
7
|
+
### [4.3.6](https://github.com/eea/volto-eea-website-theme/compare/4.3.5...4.3.6) - 3 June 2026
|
|
8
8
|
|
|
9
9
|
#### :bug: Bug Fixes
|
|
10
10
|
|
|
11
|
-
- fix: Cannot read properties of
|
|
11
|
+
- fix: TypeError: Cannot read properties of undefined (reading getState) - refs sentry #465456 [Alin Voinea - [`3561a7d`](https://github.com/eea/volto-eea-website-theme/commit/3561a7d73a8a01f04a9c00b092f0dd7ea169ca7e)]
|
|
12
|
+
- fix: .classList on null - refs sentry #456182 [Alin Voinea - [`af1ec8c`](https://github.com/eea/volto-eea-website-theme/commit/af1ec8ca8137a22bcf022c1f604f2da34fa2234b)]
|
|
13
|
+
|
|
14
|
+
### [4.3.5](https://github.com/eea/volto-eea-website-theme/compare/4.3.4...4.3.5) - 28 May 2026
|
|
12
15
|
|
|
13
16
|
#### :house: Internal changes
|
|
14
17
|
|
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@ const EEAHeader = ({ pathname, token, items, history, navroot, subsite }) => {
|
|
|
107
107
|
const layout = state.content?.data?.layout;
|
|
108
108
|
const has_home_layout =
|
|
109
109
|
layout === 'homepage_inverse_view' ||
|
|
110
|
-
(__CLIENT__ && document.body
|
|
110
|
+
(__CLIENT__ && document.body?.classList.contains('homepage-inverse'));
|
|
111
111
|
|
|
112
112
|
return (
|
|
113
113
|
has_home_layout &&
|
|
@@ -81,7 +81,10 @@ server.use(function (err, req, res, next) {
|
|
|
81
81
|
const { store } = res.locals;
|
|
82
82
|
const ErrorComponent =
|
|
83
83
|
config.getComponent('ErrorBoundary')?.component || null;
|
|
84
|
-
|
|
84
|
+
|
|
85
|
+
// If no Redux store is available (e.g. setupServer failed before
|
|
86
|
+
// creating one), render a minimal error page without Provider
|
|
87
|
+
const errorPage = store ? (
|
|
85
88
|
<Provider store={store} onError={reactIntlErrorHandler}>
|
|
86
89
|
<StaticRouter context={{}} location={req.url}>
|
|
87
90
|
{ErrorComponent ? (
|
|
@@ -91,6 +94,10 @@ server.use(function (err, req, res, next) {
|
|
|
91
94
|
)}
|
|
92
95
|
</StaticRouter>
|
|
93
96
|
</Provider>
|
|
97
|
+
) : (
|
|
98
|
+
<StaticRouter context={{}} location={req.url}>
|
|
99
|
+
<ErrorPage message={err.message} />
|
|
100
|
+
</StaticRouter>
|
|
94
101
|
);
|
|
95
102
|
|
|
96
103
|
res.set({
|