Skip to content

Commit

Permalink
Handle no data when sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexd-bes committed Jan 15, 2024
1 parent ac07ee3 commit d2dc86b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const processMeasureData = ({

// for radius overlay sort desc radius to place smaller circles over larger circles
if (serieses.some(l => l.type === MEASURE_TYPE_RADIUS)) {
entityMeasureData.sort((a, b) => Number(b.radius) - Number(a.radius));
entityMeasureData?.sort((a, b) => Number(b.radius) - Number(a.radius));
}

return entityMeasureData;
Expand Down

0 comments on commit d2dc86b

Please sign in to comment.