From fe57dac18a812280342666ca1956db439ea6895c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 3 Aug 2020 13:08:42 +0200 Subject: [PATCH] Fix group filter trim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/models/contact.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/contact.js b/src/models/contact.js index e07fef70e..d23f8a2f9 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 []