bug fix: incorrect handling of empty hashpath

This commit is contained in:
or-else
2018-05-16 19:58:39 -07:00
parent ce0e83070a
commit 556e249b78
+3
View File
@@ -3883,6 +3883,9 @@
} else {
console.log("Unknown sidepanel view", hash.path[0]);
}
} else {
// Empty hashpath
this.setState({sidePanelSelected: ''});
}
// Topic for MessagesView selector.
if (hash.path.length > 1 && hash.path[1] != this.state.topicSelected) {