diff --git a/source/selectors/regleSelectors.js b/source/selectors/regleSelectors.js index 4a68d746e..24f367571 100644 --- a/source/selectors/regleSelectors.js +++ b/source/selectors/regleSelectors.js @@ -54,8 +54,9 @@ export const règleValeurSelector = createSelector( ) } const rule = - analysis.cache[dottedName] || - analysis.targets.find(target => target.dottedName === dottedName) + !Array.isArray(analysis) && // It's an array if we're in a comparative simulation. + (analysis.cache[dottedName] || + analysis.targets.find(target => target.dottedName === dottedName)) let valeur = rule && !isNil(rule.nodeValue)