Fix bundle not working due to undefined initial JSON

This commit is contained in:
jos 2018-09-05 17:59:15 +02:00
parent 80f45f39ec
commit 088bee74cb
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ export default class TreeMode extends PureComponent {
} }
// Apply json // Apply json
if (nextProps.json !== this.state.json) { if (nextProps.json !== this.state.json && nextProps.json !== undefined) {
const json = nextProps.json const json = nextProps.json
this.setState({ this.setState({