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