Skip to content

Commit

Permalink
Fix group filter trim
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 3, 2020
1 parent 9d65ef5 commit fe57dac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit fe57dac

Please sign in to comment.