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