You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Handle case where ordering is not yet known
This commit is contained in:
@@ -96,7 +96,7 @@ module.exports = React.createClass({
|
|||||||
this._visibleRooms = [];
|
this._visibleRooms = [];
|
||||||
// When the selected tags are changed, initialise a group store if necessary
|
// When the selected tags are changed, initialise a group store if necessary
|
||||||
this._tagStoreToken = TagOrderStore.addListener(() => {
|
this._tagStoreToken = TagOrderStore.addListener(() => {
|
||||||
TagOrderStore.getOrderedTags().forEach((tag) => {
|
(TagOrderStore.getOrderedTags() || []).forEach((tag) => {
|
||||||
if (tag[0] !== '+' || this._groupStores[tag]) {
|
if (tag[0] !== '+' || this._groupStores[tag]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user