1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-19 20:23:18 +03:00

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