mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 17:31:50 +02:00
Return null if TagOrderStore is loading
The view should decide the default state.
This commit is contained in:
parent
991ea4ebe5
commit
aa914098dc
@ -58,7 +58,7 @@ const TagPanel = React.createClass({
|
||||
return;
|
||||
}
|
||||
|
||||
const orderedTags = TagOrderStore.getOrderedTags();
|
||||
const orderedTags = TagOrderStore.getOrderedTags() || [];
|
||||
const orderedGroupTags = orderedTags.filter((t) => t[0] === '+');
|
||||
Promise.all(orderedGroupTags.map(
|
||||
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),
|
||||
|
@ -94,7 +94,7 @@ class TagOrderStore extends Store {
|
||||
_updateOrderedTags() {
|
||||
this._setState({
|
||||
orderedTags: this._state.hasSynced && this._state.hasFetchedJoinedGroups ?
|
||||
this._state.orderedTagsAccountData || this._state.joinedGroupIds : [],
|
||||
this._state.orderedTagsAccountData || this._state.joinedGroupIds : null,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user