diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 2dc36d5700..0339ce738d 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -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; }