mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-10 04:10:56 +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 layoutXArray = obsLayout.col(layoutDimNames[0]).asArray();
|
||||||
const layoutYArray = obsLayout.col(layoutDimNames[1]).asArray();
|
const layoutYArray = obsLayout.col(layoutDimNames[1]).asArray();
|
||||||
|
|
||||||
const { categoryValueIndices, categoryValueCounts } = categoricalSelection[
|
const { categoryValueIndices, categoryValueCounts } =
|
||||||
categoryName
|
categoricalSelection?.[categoryName] || {};
|
||||||
];
|
|
||||||
|
|
||||||
// If the coloredBy is not a categorical col
|
// If the coloredBy is not a categorical col
|
||||||
if (categoryValueIndices === undefined) {
|
if (categoryValueIndices === undefined) {
|
||||||
return coordinates;
|
return coordsByCategoryLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check to see if the current category is a user created annotation
|
// Check to see if the current category is a user created annotation
|
||||||
const isUserAnno = schemaObsByName[categoryName].writable;
|
const isUserAnno = schemaObsByName[categoryName].writable;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user