diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-02-05 09:52:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 09:52:41 +0100 |
commit | 6f391d26bbb3f0db8b25b81e7229c4f6c39f0248 (patch) | |
tree | 50243c4380c5f935495d21e27c8fa950686461ff /src/store | |
parent | f173199bff169c4a7042ab979806f97915f8b506 (diff) |
Revert "Add uncategorised group (Not grouped) on the app navigation #874"
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/groups.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/store/groups.js b/src/store/groups.js index eea9f289..8b00d593 100644 --- a/src/store/groups.js +++ b/src/store/groups.js @@ -35,7 +35,7 @@ const mutations = { extractGroupsFromContacts(state, contacts) { // iterate contacts contacts.forEach(contact => { - if (contact.groups.length !== 0) { + if (contact.groups) { contact.groups.forEach(groupName => { let group = state.groups.find(search => search.name === groupName) // nothing? create a new one @@ -48,18 +48,6 @@ const mutations = { } group.contacts.push(contact.key) }) - } else { - const notGroupedName = t('contacts', 'Not grouped') - let group = state.groups.find(search => search.name === notGroupedName) - // the group does not exists lets create it - if (!group) { - state.groups.push({ - name: notGroupedName, - contacts: [] - }) - group = state.groups.find(search => search.name === notGroupedName) - } - group.contacts.push(contact.key) } }) }, |