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
|
||||
if (nextProps.json !== this.state.json) {
|
||||
if (nextProps.json !== this.state.json && nextProps.json !== undefined) {
|
||||
const json = nextProps.json
|
||||
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in New Issue