filter by clusters typecast bug

This commit is contained in:
Colin Megill
2017-12-28 19:23:24 -08:00
parent 75dd7c9c2e
commit 80c5d056ad
@@ -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;
}
})