@eeacms/volto-eea-website-theme 1.24.1 → 1.24.2
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 +6 -0
- package/package.json +1 -1
- package/src/index.js +9 -0
package/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ 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.24.2](https://github.com/eea/volto-eea-website-theme/compare/1.24.1...1.24.2) - 4 December 2023
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: check if schema has properties.data - refs #261239 [dobri1408 - [`b2a5faf`](https://github.com/eea/volto-eea-website-theme/commit/b2a5fafa8e41a4ea2d5124f8f6cd3e6bbd276a21)]
|
12
|
+
|
7
13
|
### [1.24.1](https://github.com/eea/volto-eea-website-theme/compare/1.24.0...1.24.1) - 27 November 2023
|
8
14
|
|
9
15
|
#### :nail_care: Enhancements
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -67,6 +67,15 @@ function tabVariationCustomization(tabs_block_variations, config) {
|
|
67
67
|
const schema = (oldSchemaEnhancer ? oldSchemaEnhancer(props) : props)
|
68
68
|
.schema;
|
69
69
|
const oldSchemaExtender = schema.properties?.data?.schemaExtender;
|
70
|
+
|
71
|
+
//check before if schema.properties.data exists
|
72
|
+
if (!schema?.properties?.data) {
|
73
|
+
schema.properties = {
|
74
|
+
...schema.properties,
|
75
|
+
data: {},
|
76
|
+
};
|
77
|
+
}
|
78
|
+
|
70
79
|
schema.properties.data.schemaExtender = (schema, child) => {
|
71
80
|
const innerSchema = oldSchemaExtender
|
72
81
|
? oldSchemaExtender(schema, child)
|