diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-03 13:08:42 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-03 13:08:42 +0200 |
commit | fe57dac18a812280342666ca1956db439ea6895c (patch) | |
tree | 8bb6fcc2cf4dbc203602735cc4c333c53c121d09 /src | |
parent | 9d65ef506fa8219b9707902d1bcac987609e28fa (diff) |
Fix group filter trim
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/models/contact.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index e07fef70..d23f8a2f 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -261,6 +261,7 @@ export default class Contact { const groupsProp = this.vCard.getFirstProperty('categories') if (groupsProp) { return groupsProp.getValues() + .filter(group => typeof group === 'string') .filter(group => group.trim() !== '') } return [] |