diff --git a/UI/WebServerResources/js/Contacts/Card.service.js b/UI/WebServerResources/js/Contacts/Card.service.js index 2d6ac8b3a..913b36756 100644 --- a/UI/WebServerResources/js/Contacts/Card.service.js +++ b/UI/WebServerResources/js/Contacts/Card.service.js @@ -492,16 +492,20 @@ Card.prototype.explode = function() { var _this = this, cards = [], data; - if (this.emails.length > 1) { - data = this.$omit(); - _.forEach(this.emails, function(email) { - var card = new Card(angular.extend({}, data, {emails: [email]})); - cards.push(card); - }); - return cards; + if (this.emails) { + if (this.emails.length > 1) { + data = this.$omit(); + _.forEach(this.emails, function(email) { + var card = new Card(angular.extend({}, data, {emails: [email]})); + cards.push(card); + }); + return cards; + } + else + return [this]; } - else - return [this]; + + return []; }; /**