diff --git a/source/selectors/analyseSelectors.js b/source/selectors/analyseSelectors.js index 0d682b6e3..5b7fd63e5 100644 --- a/source/selectors/analyseSelectors.js +++ b/source/selectors/analyseSelectors.js @@ -189,15 +189,14 @@ export let exampleAnalysisSelector = createSelector( let makeAnalysisSelector = situationSelector => createDeepEqualSelector( [parsedRulesSelector, targetNamesSelector, situationSelector], - (parsedRules, targetNames, situations) => { - return mapOrApply( + (parsedRules, targetNames, situations) => + mapOrApply( situation => analyseMany(parsedRules, targetNames)(dottedName => { return situation[dottedName] }), situations ) - } ) export let analysisWithDefaultsSelector = makeAnalysisSelector(