diff --git a/CHANGELOG.md b/CHANGELOG.md index 91caedd..b5ff190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). +#### [4.3.7](https://github.com/eea/volto-group-block/compare/4.3.6...4.3.7) + +- fix(countTextInBlocks): Don't count text if maxChars is not set - refs #153110 [`230298a`](https://github.com/eea/volto-group-block/commit/230298a23f9f67d76721b201cafdfd60c8be0f17) + #### [4.3.6](https://github.com/eea/volto-group-block/compare/4.3.5...4.3.6) +> 30 June 2022 + +- develop [`#20`](https://github.com/eea/volto-group-block/pull/20) #### [4.3.5](https://github.com/eea/volto-group-block/compare/4.3.4...4.3.5) diff --git a/Jenkinsfile b/Jenkinsfile index d051fe2..fd627db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { NAMESPACE = "@eeacms" SONARQUBE_TAGS = "volto.eea.europa.eu,forest.eea.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu,sustainability.eionet.europa.eu,biodiversity.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,circularity.eea.europa.eu" DEPENDENCIES = "" - VOLTO = "alpha" + VOLTO = "16.0.0-alpha.14" } stages { diff --git a/package.json b/package.json index 2c824a5..78f33ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-group-block", - "version": "4.3.6", + "version": "4.3.7", "description": "volto-group-block: Volto block to be used to group other blocks", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/manage/Blocks/Group/Edit.jsx b/src/components/manage/Blocks/Group/Edit.jsx index 2e07a66..115c9c6 100644 --- a/src/components/manage/Blocks/Group/Edit.jsx +++ b/src/components/manage/Blocks/Group/Edit.jsx @@ -80,6 +80,9 @@ const Edit = (props) => { */ const countTextInBlocks = (blocksObject) => { let groupCharCount = 0; + if (!props.data.maxChars) { + return groupCharCount; + } Object.keys(blocksObject).forEach((blockId) => { const foundText = blocksObject[blockId]?.plaintext