Do not allow ordering until TagOrderStore has loaded

This commit is contained in:
Luke Barnard 2017-12-11 17:24:33 +00:00
parent aa914098dc
commit 0b38bf5e7b

View File

@ -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;