Skip to content

Commit

Permalink
Merge pull request #44 from eea/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 authored Jan 18, 2022
2 parents e46c4af + 565bcb6 commit 2006fdd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ 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).

#### [3.4.13](https://github.com/eea/volto-accordion-block/compare/3.4.12...3.4.13)

- Initialize empty active index [`#43`](https://github.com/eea/volto-accordion-block/pull/43)
- initialize empty activeIndex [`0105982`](https://github.com/eea/volto-accordion-block/commit/01059821035e2006ab5347597646deabc8762fa3)

#### [3.4.12](https://github.com/eea/volto-accordion-block/compare/3.4.11...3.4.12)

> 3 January 2022

#### [3.4.11](https://github.com/eea/volto-accordion-block/compare/3.4.10...3.4.11)

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-accordion-block",
"version": "3.4.12",
"version": "3.4.13",
"description": "volto-accordion-block: Volto accordion block",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const View = (props) => {
const { data } = props;
const panels = getPanels(data.data);
const metadata = props.metadata || props.properties;
const [activeIndex, setActiveIndex] = React.useState([0]);
const [activeIndex, setActiveIndex] = React.useState([]);
const { titleIcons } = config.blocks.blocksConfig.accordion;
const handleClick = (e, itemProps) => {
const { index } = itemProps;
Expand Down

0 comments on commit 2006fdd

Please sign in to comment.