From 3884c5ccf061411843e17f1305d2fd6dbe7f5693 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 16 Jun 2017 11:51:12 +0100 Subject: [PATCH] Log an error on unknown state instead of throwing --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 3dbde90141..2fde44aaeb 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1476,6 +1476,6 @@ module.exports = React.createClass({ ); } - throw new Error(`Unknown view ${this.state.view}`); + console.error(`Unknown view ${this.state.view}`); }, });