Skip to content

Commit

Permalink
[FE: fix #2371] fix for when labels are null
Browse files Browse the repository at this point in the history
Categoricals can have nulls
  • Loading branch information
blrnw3 committed Oct 4, 2021
1 parent e6bacf0 commit d2de200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/graph/overlays/centroidLabels.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class CentroidLabels extends PureComponent {

// Mirror LSB middle truncation
let displayLabel = label;
if (displayLabel.length > categoryLabelDisplayStringLongLength) {
if (displayLabel?.length > categoryLabelDisplayStringLongLength) {
displayLabel = `${label.slice(
0,
categoryLabelDisplayStringLongLength / 2
Expand Down

0 comments on commit d2de200

Please sign in to comment.