mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 01:18:12 +08:00
filter by clusters typecast bug
This commit is contained in:
@@ -147,7 +147,6 @@ const updateCellSelectionMiddleware = (store) => {
|
||||
_.each(newCategoricalAsBooleansMap, (options, category) => {
|
||||
_.each(options, (isActive, option) => {
|
||||
if (!isActive) {
|
||||
console.log("category: ", category, "option:", option)
|
||||
inactiveCategories.push({category, option})
|
||||
}
|
||||
})
|
||||
@@ -156,7 +155,7 @@ const updateCellSelectionMiddleware = (store) => {
|
||||
if (inactiveCategories.length > 0) {
|
||||
_.each(inactiveCategories, (d) => {
|
||||
_.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;
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user