🐛 Compataibilité avec les barèmes codés dans l'ancien style

pull/492/head
Mael 2019-02-27 18:03:20 +01:00 committed by Johan Girod
parent c6815aab91
commit a67944b9ea
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ import './Barème.css'
import classNames from 'classnames'
import { ShowValuesConsumer } from 'Components/rule/ShowValuesContext'
import withLanguage from 'Components/utils/withLanguage'
import { identity } from 'ramda'
export let BarèmeAttributes = ({ explanation, lazyEval }) => (
export let BarèmeAttributes = ({ explanation, lazyEval = identity }) => (
<>
<li key="assiette">
<span className="key">
@ -151,6 +152,6 @@ let Tranche = ({
}
//eslint-disable-next-line
export default barèmeType => (nodeValue, explanation, lazyEval) => (
export default barèmeType => (nodeValue, explanation, lazyEval = identity) => (
<Component {...{ nodeValue, explanation, barèmeType, lazyEval }} />
)