Do not assume that tags have been removed

when moving tags
pull/21833/head
Luke Barnard 2018-02-16 15:52:15 +00:00
parent 07b691a45d
commit 84ab1ae3e2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ const TagOrderActions = {};
TagOrderActions.moveTag = function(matrixClient, tag, destinationIx) {
// Only commit tags if the state is ready, i.e. not null
let tags = TagOrderStore.getOrderedTags();
let removedTags = TagOrderStore.getRemovedTagsAccountData();
let removedTags = TagOrderStore.getRemovedTagsAccountData() || [];
if (!tags) {
return;
}