Skip to content

Commit

Permalink
fix: MANO-1A7 (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro authored Jan 15, 2024
1 parent 61d560f commit 07a3d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dashboard/src/scenes/stats/PersonsStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export default function PersonStats({ title, firstBlockHelp, filterBase, filterP

const onSliceClick = (newSlice, fieldName, personConcerned = personsForStats) => {
const newSlicefield = filterBase.find((f) => f.field === fieldName);
if (!newSlicefield) {
capture('newSlicefield not found', { fieldName, filterBase });
return;
}
setSliceField(newSlicefield);
setSliceValue(newSlice);
const slicedData =
Expand Down

0 comments on commit 07a3d43

Please sign in to comment.