From ca59a9630314f3a9c56c4c995ccf841d5cd6754e Mon Sep 17 00:00:00 2001 From: Mael Date: Wed, 9 Jan 2019 10:46:26 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20R=C3=A9paration=20de=20"mes=20r=C3=A9po?= =?UTF-8?q?nses"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/selectors/regleSelectors.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)