mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 06:58:11 +08:00
filter by clusters typecast bug
This commit is contained in:
@@ -147,7 +147,6 @@ const updateCellSelectionMiddleware = (store) => {
|
|||||||
_.each(newCategoricalAsBooleansMap, (options, category) => {
|
_.each(newCategoricalAsBooleansMap, (options, category) => {
|
||||||
_.each(options, (isActive, option) => {
|
_.each(options, (isActive, option) => {
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
console.log("category: ", category, "option:", option)
|
|
||||||
inactiveCategories.push({category, option})
|
inactiveCategories.push({category, option})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -156,7 +155,7 @@ const updateCellSelectionMiddleware = (store) => {
|
|||||||
if (inactiveCategories.length > 0) {
|
if (inactiveCategories.length > 0) {
|
||||||
_.each(inactiveCategories, (d) => {
|
_.each(inactiveCategories, (d) => {
|
||||||
_.each(newSelection, (cell, i) => {
|
_.each(newSelection, (cell, i) => {
|
||||||
if (cell[d.category] === d.option) {
|
if (""+cell[d.category] === ""+d.option) { /* nums and strings to strings */
|
||||||
newSelection[i]["__selected__"] = false;
|
newSelection[i]["__selected__"] = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user