From fcb6f409b5cf83e1f790f32afb0bbb9d97c06a84 Mon Sep 17 00:00:00 2001 From: Mael Thomas Date: Wed, 1 Mar 2017 20:27:35 +0100 Subject: [PATCH] =?UTF-8?q?[moteur]=20formulaire,=20court-circuit=C3=A9,?= =?UTF-8?q?=20expliqu=C3=A9,=20mais=20CIF=20seulement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/CDD.js | 2 +- source/components/Results.js | 17 ++++++++------- source/components/Rule.js | 28 +++++++++++-------------- source/engine/rules.js | 40 ++++++++++++++++++++++++++++++++++++ source/engine/traverse.js | 19 +++++++++-------- source/reducers.js | 38 +++++++++++----------------------- 6 files changed, 86 insertions(+), 58 deletions(-) diff --git a/source/components/CDD.js b/source/components/CDD.js index c1a00afd1..252303ba5 100644 --- a/source/components/CDD.js +++ b/source/components/CDD.js @@ -12,7 +12,7 @@ import Aide from './Aide' let situationSelector = formValueSelector('conversation') @reduxForm( - {form: 'conversation'} + {form: 'conversation', destroyOnUnmount: false} ) @connect(state => ({ situation: variableName => situationSelector(state, variableName), diff --git a/source/components/Results.js b/source/components/Results.js index abe0c45de..41830d078 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -5,23 +5,26 @@ import {Link} from 'react-router' export default class Results extends Component { render() { let {analysedSituation} = this.props + // missingVariables = collectMissingVariables(analysedSituation, 'groupByResult') return (

Vos obligations

+ {console.log('analysedSituation', analysedSituation)}