@eeacms/volto-accordion-block
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -7,6 +7,13 @@ ### Changelog | ||
#### [3.2.1](https://github.com/eea/volto-accordion-block/compare/3.2.0...3.2.1) | ||
- Revert "commented the use of duplicate useEffect" [`aafa69c`](https://github.com/eea/volto-accordion-block/commit/aafa69c28e9cdd54e80bb1f60691ea51066eaaf7) | ||
#### [3.2.0](https://github.com/eea/volto-accordion-block/compare/3.1.0...3.2.0) | ||
> 7 April 2021 | ||
- commented the use of duplicate useEffect [`f771fb8`](https://github.com/eea/volto-accordion-block/commit/f771fb8701ad58b6fcca785c7e4b042eec5e3b07) | ||
- Save data for empty accordion on mount [`f80e728`](https://github.com/eea/volto-accordion-block/commit/f80e728e91ebe16c7ee6966d4b89e8d0fc986fd0) | ||
- Release 3.2.0 [`715f6a4`](https://github.com/eea/volto-accordion-block/commit/715f6a4c3bea65e0a7f9efda1c16bc62fcd6d3ea) | ||
- Replace group with accordion within class names [`8113731`](https://github.com/eea/volto-accordion-block/commit/8113731fbc770ec8b29346d9d2f97f0d067a6021) | ||
@@ -13,0 +20,0 @@ - Add support for onInsertBlock with BlockChooser [`0e37fb3`](https://github.com/eea/volto-accordion-block/commit/0e37fb3542be53806017d0611c9239e5cdf94193) |
{ | ||
"name": "@eeacms/volto-accordion-block", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "volto-accordion-block: Volto accordion block", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -44,26 +44,26 @@ import React, { useState } from 'react'; | ||
// React.useEffect(() => { | ||
// properties.blocks_layout.items.map((item) => { | ||
// if (isEmpty(properties.blocks[item].blocks)) { | ||
// return onChangeBlock(block, { | ||
// ...data, | ||
// data: { | ||
// ...properties, | ||
// blocks: { | ||
// ...properties.blocks, | ||
// [item]: emptyBlocksForm(), | ||
// }, | ||
// }, | ||
// }); | ||
// } | ||
// return undefined; | ||
// }); | ||
// }, [ | ||
// onChangeBlock, | ||
// properties, | ||
// selectedBlock, | ||
// block, | ||
// data, | ||
// properties.blocks, | ||
// ]); | ||
React.useEffect(() => { | ||
properties.blocks_layout.items.map((item) => { | ||
if (isEmpty(properties.blocks[item].blocks)) { | ||
return onChangeBlock(block, { | ||
...data, | ||
data: { | ||
...properties, | ||
blocks: { | ||
...properties.blocks, | ||
[item]: emptyBlocksForm(), | ||
}, | ||
}, | ||
}); | ||
} | ||
return undefined; | ||
}); | ||
}, [ | ||
onChangeBlock, | ||
properties, | ||
selectedBlock, | ||
block, | ||
data, | ||
properties.blocks, | ||
]); | ||
@@ -70,0 +70,0 @@ const blockState = {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79998