summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-04-20 10:36:38 +0200
committerGitHub <noreply@github.com>2023-04-20 10:36:38 +0200
commit96df9c23871bb29d737a2b0d9eed7b96a5c8094c (patch)
tree251cfd378dcaf3438e4f7126ecb56c7c80a9e9e7
parent9cf1743bd982d931f5c11a1e65cf11dce10b691d (diff)
parent10ae2dd50d97d18886080278560242167ef9316f (diff)
Merge pull request #3290 from caplod/check-empty-email
fix error when contact has no email
-rw-r--r--src/components/AppNavigation/GroupNavigationItem.vue2
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()