From d0ad41cd067d9fd7bc681d55159f954bcde7588a Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 15 Jan 2019 18:44:09 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20corrige=20l'affichage=20du=20nom=20de?= =?UTF-8?q?=20la=20branche=20d'index=200=20dans=20les=20r=C3=A8gles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/selectors/analyseSelectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/selectors/analyseSelectors.js b/source/selectors/analyseSelectors.js index 56af51ffd..a4e1b147a 100644 --- a/source/selectors/analyseSelectors.js +++ b/source/selectors/analyseSelectors.js @@ -21,6 +21,7 @@ import { head, intersection, isEmpty, + isNil, mergeDeepWith, pick } from 'ramda' @@ -106,7 +107,7 @@ export let situationBranchesSelector = createSituationBrancheSelector( export let situationBranchNameSelector = createSelector( [branchesSelector, state => state.situationBranch], (branches, currentBranch) => - branches && currentBranch && branches[currentBranch].nom + branches && !isNil(currentBranch) && branches[currentBranch].nom ) export let validatedSituationSelector = createSelector(