🐛 Réparation de "mes réponses"

indeps-démo
Mael 2019-01-09 10:46:26 +01:00
parent b6553846c1
commit ca59a96303
1 changed files with 3 additions and 2 deletions

View File

@ -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)