mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-18 18:38:11 +08:00
dont use lodash get()
This commit is contained in:
6
src/reducers/controls.js
vendored
6
src/reducers/controls.js
vendored
@@ -70,8 +70,10 @@ const Controls = (state = {
|
||||
|
||||
// Add each cell to its categorical metadata set.
|
||||
_.forEach(cell, (_value, key) => {
|
||||
const s = _.get(categoricalAsCellsMap, [key, _value]);
|
||||
if (s) s.push(cell);
|
||||
if (categoricalAsCellsMap[key] && categoricalAsCellsMap[key][_value]) {
|
||||
const s = categoricalAsCellsMap[key][_value];
|
||||
if (s) s.push(cell);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user