🐛 répare la page assimilé salarié

pull/444/head
Johan Girod 2019-01-07 18:14:45 +01:00
parent 27e0e472ac
commit 7b029c4991
2 changed files with 11 additions and 12 deletions

View File

@ -13,18 +13,18 @@ import {
} from 'Engine/rules'
import { analyse, analyseMany, parseAll } from 'Engine/traverse'
import {
map,
mergeDeepWith,
pipe,
add,
contains,
dissoc,
equals,
head,
isEmpty,
pick,
reduce,
intersection,
dissoc
isEmpty,
map,
mergeDeepWith,
pick,
pipe,
reduce
} from 'ramda'
import { getFormValues } from 'redux-form'
import { createSelector, createSelectorCreator, defaultMemoize } from 'reselect'
@ -120,7 +120,7 @@ export let ruleAnalysisSelector = createSelector(
(_, { dottedName }) => dottedName,
situationsWithDefaultsSelector,
state => state.situationBranch || 0,
(_, { raccourcis: valueShortcuts }) => valueShortcuts || {}
(_, props) => props?.raccourcis || {}
],
(rules, dottedName, situations, situationBranch, valueShortcuts) =>
analyseRule(
@ -163,7 +163,7 @@ let makeAnalysisSelector = situationSelector =>
parsedRulesSelector,
targetNamesSelector,
situationSelector,
(_, { raccourcis: valueShortcuts }) => valueShortcuts
(_, props) => props?.raccourcis || {}
],
(parsedRules, targetNames, situations, valueShortcuts) => {
let analyses = situations.map(situation =>

View File

@ -1,6 +1,5 @@
import React from 'react'
import Simulateur from 'Components/Simu'
import React from 'react'
import { connect } from 'react-redux'
import { change } from 'redux-form'
@ -13,7 +12,7 @@ export default connect(
)
})
)(
class extends React.Component {
class SimulateurAssimilé extends React.Component {
constructor(props) {
super(props)
this.props.setAssimilé('oui')