Do not assume that tags have been removed
when moving tags
This commit is contained in:
parent
07b691a45d
commit
84ab1ae3e2
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ const TagOrderActions = {};
|
||||||
TagOrderActions.moveTag = function(matrixClient, tag, destinationIx) {
|
TagOrderActions.moveTag = function(matrixClient, tag, destinationIx) {
|
||||||
// Only commit tags if the state is ready, i.e. not null
|
// Only commit tags if the state is ready, i.e. not null
|
||||||
let tags = TagOrderStore.getOrderedTags();
|
let tags = TagOrderStore.getOrderedTags();
|
||||||
let removedTags = TagOrderStore.getRemovedTagsAccountData();
|
let removedTags = TagOrderStore.getRemovedTagsAccountData() || [];
|
||||||
if (!tags) {
|
if (!tags) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue