From 3e532e3722126a541258888aa1453c7259894fed Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 12 Dec 2017 14:10:39 +0000 Subject: [PATCH] Use consistent indentation and break;s in TagOrderStore switch --- src/stores/TagOrderStore.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stores/TagOrderStore.js b/src/stores/TagOrderStore.js index 2ed6ff6e75..819ad5abfe 100644 --- a/src/stores/TagOrderStore.js +++ b/src/stores/TagOrderStore.js @@ -65,13 +65,14 @@ class TagOrderStore extends Store { break; } // Initialise the state such that if account data is unset, default to joined groups - case 'GroupActions.fetchJoinedGroups.success': + case 'GroupActions.fetchJoinedGroups.success': { this._setState({ joinedGroupIds: payload.result.groups.sort(), // Sort lexically hasFetchedJoinedGroups: true, }); this._updateOrderedTags(); - break; + break; + } // Puts payload.tag at payload.targetTag, placing the targetTag before or after the tag case 'order_tag': { if (!this._state.orderedTags || @@ -90,8 +91,8 @@ class TagOrderStore extends Store { ...orderedTags.slice(newIndex), ]; this._setState({orderedTags}); + break; } - break; } }