Résolution d'un 🐛 de sélecteur
parent
0d1e809e3a
commit
7174ba2356
|
@ -27,7 +27,7 @@ const connectRègles = (situationBranchName: string) =>
|
|||
situationBranchName
|
||||
})('revenu net')
|
||||
}: {
|
||||
revenuDisponible: RègleAvecMontant
|
||||
revenuDisponible: boolean | RègleAvecMontant
|
||||
})
|
||||
},
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ import { createSelector } from 'reselect'
|
|||
import {
|
||||
branchAnalyseSelector,
|
||||
flatRulesSelector,
|
||||
validatedSituationBranchesSelector
|
||||
situationsWithDefaultsSelector
|
||||
} from './analyseSelectors'
|
||||
import type { FlatRules } from 'Types/State'
|
||||
import type {
|
||||
|
@ -57,7 +57,7 @@ export const règleValeurSelector: InputSelector<
|
|||
(dottedName: string) => RègleValeur
|
||||
> = createSelector(
|
||||
branchAnalyseSelector,
|
||||
validatedSituationBranchesSelector,
|
||||
situationsWithDefaultsSelector,
|
||||
règleLocaliséeSelector,
|
||||
(analysis: Analysis, situation, règleLocalisée: string => Règle) => (
|
||||
dottedName: string
|
||||
|
@ -72,8 +72,6 @@ export const règleValeurSelector: InputSelector<
|
|||
(analysis.cache[dottedName] ||
|
||||
analysis.targets.find(target => target.dottedName === dottedName))
|
||||
|
||||
if (rule == undefined) return null
|
||||
|
||||
let valeur =
|
||||
rule && !isNil(rule.nodeValue)
|
||||
? rule.nodeValue
|
||||
|
|
Loading…
Reference in New Issue