diff --git a/src/reducers/controls.js b/src/reducers/controls.js index 54226bdb..0718cc04 100644 --- a/src/reducers/controls.js +++ b/src/reducers/controls.js @@ -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); + } }); });