mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-23 22:18:12 +08:00
slice current selection rather than all cells to preserve color
This commit is contained in:
@@ -43,7 +43,7 @@ const updateCellSelectionMiddleware = (store) => {
|
||||
- make a FRESH copy of all of the cells
|
||||
- metadata has cellname, and that's all we ever need (is a key to graphMap)
|
||||
*/
|
||||
let newSelection = s.controls.allCellsOnClient.metadata.slice(0);
|
||||
let newSelection = s.controls.currentCellSelection.slice(0);
|
||||
_.each(newSelection, (cell) => { cell["__selected__"] = true } );
|
||||
/*
|
||||
in plain language...
|
||||
|
||||
Reference in New Issue
Block a user