mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Do not allow ordering until TagOrderStore has loaded
This commit is contained in:
parent
aa914098dc
commit
0b38bf5e7b
@ -74,7 +74,11 @@ class TagOrderStore extends Store {
|
||||
break;
|
||||
// Puts payload.tag at payload.targetTag, placing the targetTag before or after the tag
|
||||
case 'order_tag': {
|
||||
if (!payload.tag || !payload.targetTag || payload.tag === payload.targetTag) return;
|
||||
if (!this._state.orderedTags ||
|
||||
!payload.tag ||
|
||||
!payload.targetTag ||
|
||||
payload.tag === payload.targetTag
|
||||
) return;
|
||||
|
||||
const tags = this._state.orderedTags;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user