Log an error on unknown state instead of throwing

pull/21833/head
Richard van der Hoff 2017-06-16 11:51:12 +01:00
parent 5e5639b730
commit 3884c5ccf0
1 changed files with 1 additions and 1 deletions

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}`);
},
});