@eeacms/volto-marine-policy 2.0.37 → 2.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [2.0.38](https://github.com/eea/volto-marine-policy/compare/2.0.37...2.0.38) - 8 January 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: total count in demo sites map chart [laszlocseh - [`99a8412`](https://github.com/eea/volto-marine-policy/commit/99a84122dc472ffff2989eb801b2c919b426326d)]
|
|
12
|
+
|
|
7
13
|
### [2.0.37](https://github.com/eea/volto-marine-policy/compare/2.0.36...2.0.37) - 27 November 2025
|
|
8
14
|
|
|
9
15
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -163,10 +163,10 @@ const ObjectivesChart = ({
|
|
|
163
163
|
chartRef.current.style.cursor = 'default'; // Reset cursor
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
|
|
167
166
|
const labels = Object.keys(objectives);
|
|
168
167
|
const values = Object.values(objectives);
|
|
169
|
-
const totalCount =
|
|
168
|
+
const totalCount = items ? items.length : 0;
|
|
169
|
+
// const totalCount = values.reduce((acc, curr) => acc + curr, 0);
|
|
170
170
|
const customColors = ['#007b6c', '#fdaf20', '#004b7f', '#f9eb8a', '#9e83b6']; // Adjust colors as needed
|
|
171
171
|
const grayColor = '#d3d3d3';
|
|
172
172
|
// const pull = labels.map((_, i) => (i === highlightedIndex ? 0.1 : 0));
|