Handle case where ordering is not yet known

pull/21833/head
lukebarnard 2018-01-03 14:12:28 +00:00
parent a2bb240dcb
commit 2baacfa562
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ module.exports = React.createClass({
this._visibleRooms = [];
// When the selected tags are changed, initialise a group store if necessary
this._tagStoreToken = TagOrderStore.addListener(() => {
TagOrderStore.getOrderedTags().forEach((tag) => {
(TagOrderStore.getOrderedTags() || []).forEach((tag) => {
if (tag[0] !== '+' || this._groupStores[tag]) {
return;
}