diff --git a/CHANGELOG.md b/CHANGELOG.md index a089987..3680fb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ 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). +### [10.4.5](https://github.com/eea/volto-accordion-block/compare/10.4.4...10.4.5) - 10 December 2023 + ### [10.4.4](https://github.com/eea/volto-accordion-block/compare/10.4.3...10.4.4) - 24 November 2023 #### :bug: Bug Fixes diff --git a/package.json b/package.json index 377434c..d70bb42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-accordion-block", - "version": "10.4.4", + "version": "10.4.5", "description": "volto-accordion-block: Volto accordion block", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/manage/Widgets/PanelsWidget.jsx b/src/components/manage/Widgets/PanelsWidget.jsx index ce6ed93..682d6c1 100644 --- a/src/components/manage/Widgets/PanelsWidget.jsx +++ b/src/components/manage/Widgets/PanelsWidget.jsx @@ -66,7 +66,7 @@ const PanelsWidget = (props) => { }, blocks_layout: { ...value.blocks_layout, - items: [...value.blocks_layout?.items, newId], + items: [...(value.blocks_layout?.items || []), newId], }, }); }} @@ -133,7 +133,7 @@ const PanelsWidget = (props) => { blocks_layout: { ...value.blocks_layout, items: without( - [...value.blocks_layout?.items], + [...(value.blocks_layout?.items || [])], childId, ), },