Skip to content

Commit

Permalink
fix(map-pie-genders): ajouter une vérification pour les points sans g…
Browse files Browse the repository at this point in the history
…éométrie
  • Loading branch information
jerem1508 committed Jan 15, 2025
1 parent 2adf460 commit 79a04a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/atlas/charts/map-pie-genders/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function MapPieGenders({
const chart = this;
// Add the pies after chart load, optionally with offset and connectors
Highcharts.each(chart.series[0].points, function (state) {
if (!state.id) {
if (!state.id || !state.geometry) {
return; // Skip points with no data, if any
}

Expand Down

0 comments on commit 79a04a1

Please sign in to comment.