diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-04-20 10:36:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 10:36:38 +0200 |
commit | 96df9c23871bb29d737a2b0d9eed7b96a5c8094c (patch) | |
tree | 251cfd378dcaf3438e4f7126ecb56c7c80a9e9e7 /src | |
parent | 9cf1743bd982d931f5c11a1e65cf11dce10b691d (diff) | |
parent | 10ae2dd50d97d18886080278560242167ef9316f (diff) |
Merge pull request #3290 from caplod/check-empty-email
fix error when contact has no email
Diffstat (limited to 'src')
-rw-r--r-- | src/components/AppNavigation/GroupNavigationItem.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/AppNavigation/GroupNavigationItem.vue b/src/components/AppNavigation/GroupNavigationItem.vue index 23ac8566..3568f052 100644 --- a/src/components/AppNavigation/GroupNavigationItem.vue +++ b/src/components/AppNavigation/GroupNavigationItem.vue @@ -159,7 +159,7 @@ export default { */ emailGroup(group, mode = 'to') { const emails = [] - group.contacts.forEach(key => { + group.contacts.filter(key => this.contacts[key].email !== null).forEach(key => { // The email property could contain "John Doe <john.doe@example.com>", but vcard spec only // allows addr-spec, not name-addr, so to stay compliant, replace everything outside of <> const email = this.contacts[key].email.replace(/(.*<)([^>]*)(>)/g, '$2').trim() |