mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-28 17:38:12 +08:00
fix bug created from master rebase (#1216)
This commit is contained in:
@@ -33,15 +33,14 @@ const getCoordinatesByCategoricalValues = (
|
||||
const layoutXArray = obsLayout.col(layoutDimNames[0]).asArray();
|
||||
const layoutYArray = obsLayout.col(layoutDimNames[1]).asArray();
|
||||
|
||||
const { categoryValueIndices, categoryValueCounts } = categoricalSelection[
|
||||
categoryName
|
||||
];
|
||||
const { categoryValueIndices, categoryValueCounts } =
|
||||
categoricalSelection?.[categoryName] || {};
|
||||
|
||||
// If the coloredBy is not a categorical col
|
||||
if (categoryValueIndices === undefined) {
|
||||
return coordinates;
|
||||
return coordsByCategoryLabel;
|
||||
}
|
||||
|
||||
|
||||
// Check to see if the current category is a user created annotation
|
||||
const isUserAnno = schemaObsByName[categoryName].writable;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user