Fix crash when erasing value

pull/206/head
Laurent Bossavit 2018-03-21 15:32:52 +01:00
parent f4ffc89726
commit 663182651f
1 changed files with 1 additions and 1 deletions

View File

@ -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 = (
<tr
key="aggregateRowReductions"