Log an error on unknown state instead of throwing

This commit is contained in:
Richard van der Hoff 2017-06-16 11:51:12 +01:00
parent 5e5639b730
commit 3884c5ccf0

View file

@ -1476,6 +1476,6 @@ module.exports = React.createClass({
);
}
throw new Error(`Unknown view ${this.state.view}`);
console.error(`Unknown view ${this.state.view}`);
},
});