mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 01:28:11 +08:00
do not use lodash get()
This commit is contained in:
@@ -225,8 +225,9 @@ const updateCellSelectionMiddleware = (store) => {
|
|||||||
|
|
||||||
if (inactiveCategories.length > 0) {
|
if (inactiveCategories.length > 0) {
|
||||||
_.each(inactiveCategories, (d) => {
|
_.each(inactiveCategories, (d) => {
|
||||||
const cellsInCategory = _.get(s.controls.categoricalAsCellsMap, [d.category, d.option]);
|
if (s.controls.categoricalAsCellsMap[d.category] && s.controls.categoricalAsCellsMap[d.category][d.option]) {
|
||||||
_.forEach(cellsInCategory, (c) => { c.__selected__ = false; });
|
_.forEach(s.controls.categoricalAsCellsMap[d.category][d.option], (c) => { c.__selected__ = false; });
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user