Skip to content

Commit

Permalink
Merge pull request #1732 from nextcloud/fix/group-trim
Browse files Browse the repository at this point in the history
Fix group filter trim
  • Loading branch information
skjnldsv authored Aug 3, 2020
2 parents 9d65ef5 + fe57dac commit b78f4d6
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 b78f4d6

Please sign in to comment.