mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-19 19:08:11 +08:00
if any graph selection, deselect nodes without positions
This commit is contained in:
@@ -68,7 +68,10 @@ const updateCellSelectionMiddleware = (store) => {
|
||||
|
||||
_.each(newSelection, (cell, i) => {
|
||||
|
||||
if (!s.controls.graphMap[cell["CellName"]]) { return } /* this means the cells for which we do not have a graph location will be ALWAYS SELECTED */
|
||||
if (!s.controls.graphMap[cell["CellName"]]) {
|
||||
newSelection[i]["__selected__"] = false;
|
||||
return
|
||||
}
|
||||
|
||||
const coords = s.controls.graphMap[cell["CellName"]]; // [0.08005009151334168, 0.6907652173913044]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user