Skip to content

Commit

Permalink
[FE: fix #2371] fix for when labels are null (#2462)
Browse files Browse the repository at this point in the history
Categoricals can have nulls
  • Loading branch information
blrnw3 authored Oct 5, 2021
1 parent 3b091d8 commit c81731d
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 c81731d

Please sign in to comment.