From 2bc86398c0919ec9dd98728fd4938aa9cab814bc Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 16 Jul 2019 15:08:57 +0200 Subject: [PATCH] =?UTF-8?q?Supprime=20variables=20inutilis=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour réparer les tests --- source/components/conversation/FormDecorator.js | 10 +--------- source/externalize.js | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/source/components/conversation/FormDecorator.js b/source/components/conversation/FormDecorator.js index 6c927e9fc..6afc10a29 100644 --- a/source/components/conversation/FormDecorator.js +++ b/source/components/conversation/FormDecorator.js @@ -35,15 +35,7 @@ export var FormDecorator = formType => RenderField => helpVisible: false } render() { - let { - stepAction, - valueType, - defaultValue, - fieldName, - inversion, - setFormValue, - unit - } = this.props + let { stepAction, fieldName, inversion, setFormValue } = this.props let submit = cause => stepAction('fold', fieldName, cause), stepProps = { ...this.props, diff --git a/source/externalize.js b/source/externalize.js index 60af00c4a..7afe7546d 100644 --- a/source/externalize.js +++ b/source/externalize.js @@ -30,7 +30,7 @@ let resolved = rules .map(rule => ({ [buildDottedName(rule)]: R.mergeAll( R.toPairs(rule) - .filter(([_, v]) => !!v) + .filter(([, v]) => !!v) .map(([k, v]) => { let attrToTranslate = attributesToExternalize.find(R.equals(k)) if (!attrToTranslate) return {}