diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-30 12:51:55 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-30 12:51:55 +0100 |
commit | 41e8ec164713dc6b51754575e6da92995dd55df9 (patch) | |
tree | 080e849b8870f3bfdc0ef448b0ee25553e654c68 /src/models/contact.js | |
parent | a1561dfe3a728f3b636852df05d36c1947883dd7 (diff) |
Fix string detection, put delete in last and fix properties scoping
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models/contact.js')
-rw-r--r-- | src/models/contact.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index 6510edb8..d284e7fc 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -178,7 +178,7 @@ export default class Contact { let groupsProp = this.vCard.getFirstProperty('categories') if (groupsProp) { return groupsProp.getValues() - .filter(group => group !== '') + .filter(group => group.trim() !== '') } return [] } |