From a67944b9ea59515ce45eac3347072451cf627b5b Mon Sep 17 00:00:00 2001 From: Mael Date: Wed, 27 Feb 2019 18:03:20 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20Compataibilit=C3=A9=20avec=20les=20bar?= =?UTF-8?q?=C3=A8mes=20cod=C3=A9s=20dans=20l'ancien=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/mecanismViews/Barème.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/engine/mecanismViews/Barème.js b/source/engine/mecanismViews/Barème.js index c1dd15485..1847832ed 100644 --- a/source/engine/mecanismViews/Barème.js +++ b/source/engine/mecanismViews/Barème.js @@ -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 }) => ( <>
  • @@ -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) => ( )