From 663182651f307c666f7efee963eb42574ab7102b Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Wed, 21 Mar 2018 15:32:52 +0100 Subject: [PATCH] Fix crash when erasing value --- source/components/ResultsGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/ResultsGrid.js b/source/components/ResultsGrid.js index 3e50607ba..5dec38bfa 100644 --- a/source/components/ResultsGrid.js +++ b/source/components/ResultsGrid.js @@ -281,7 +281,7 @@ class ReductionRow extends Component { render() { let { relevantSalaries, node } = this.props if (!relevantSalaries.has('salaire total')) return null - let value = node ? node.nodeValue : 0 + let value = node && node.nodeValue ? node.nodeValue : 0 let aggregateRow = (