slice current selection rather than all cells to preserve color

This commit is contained in:
Colin Megill
2017-12-22 19:29:00 -08:00
parent 377b8c55b7
commit f497440af2
@@ -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...