Fix bundle not working due to undefined initial JSON
This commit is contained in:
parent
80f45f39ec
commit
088bee74cb
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue