Skip to content

Commit

Permalink
Merge pull request #80 from eea/develop
Browse files Browse the repository at this point in the history
Release fix for #261239
  • Loading branch information
avoinea committed Dec 4, 2023
2 parents 0179dd8 + 7187770 commit 0084f07
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [7.0.4](https://github.com/eea/volto-tabs-block/compare/7.0.3...7.0.4) - 4 December 2023

#### :bug: Bug Fixes

- fix: check if schema.propierties.data exists - refs #261239 [dobri1408 - [`4bf628e`](https://github.com/eea/volto-tabs-block/commit/4bf628e4d0fdcb1c7919553bdcfedbea9a7e0a2e)]

### [7.0.3](https://github.com/eea/volto-tabs-block/compare/7.0.2...7.0.3) - 29 November 2023

#### :bug: Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-tabs-block",
"version": "7.0.3",
"version": "7.0.4",
"description": "volto-tabs-block: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Edit = (props) => {
...(newFormData.blocks_layout.items.length > 0
? newFormData
: emptyTab({
schema: schema.properties.data.schema,
schema: schema?.properties?.data?.schema || {},
intl,
})),
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/templates/default/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const MenuItem = (props) => {
...tabsData.blocks,
[tabId]: {
...emptyTab({
schema: schema.properties.data.schema,
schema: schema?.properties?.data?.schema || {},
intl,
}),
},
Expand Down Expand Up @@ -267,7 +267,7 @@ const Edit = (props) => {
...(newFormData.blocks_layout.items.length > 0
? newFormData
: emptyTab({
schema: schema.properties.data.schema,
schema: schema?.properties?.data?.schema || {},
intl,
})),
},
Expand Down

0 comments on commit 0084f07

Please sign in to comment.