mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 13:38:12 +08:00
Categoricals can have nulls
This commit is contained in:
@@ -136,7 +136,7 @@ class CentroidLabels extends PureComponent {
|
|||||||
|
|
||||||
// Mirror LSB middle truncation
|
// Mirror LSB middle truncation
|
||||||
let displayLabel = label;
|
let displayLabel = label;
|
||||||
if (displayLabel.length > categoryLabelDisplayStringLongLength) {
|
if (displayLabel?.length > categoryLabelDisplayStringLongLength) {
|
||||||
displayLabel = `${label.slice(
|
displayLabel = `${label.slice(
|
||||||
0,
|
0,
|
||||||
categoryLabelDisplayStringLongLength / 2
|
categoryLabelDisplayStringLongLength / 2
|
||||||
|
|||||||
Reference in New Issue
Block a user