do not use lodash get()

This commit is contained in:
bkmartinjr
2018-05-02 17:20:43 -07:00
parent 1bca48cde3
commit 71c2a3ab43
@@ -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; });
}
}) })
} }