(js) Expose invalid data in AddressBook.$id

pull/229/merge
Francis Lachapelle 2018-08-31 13:13:35 -04:00
parent 2d63bd0bb4
commit 3394018604
1 changed files with 4 additions and 1 deletions

View File

@ -262,7 +262,10 @@
else {
// Wait until object is unwrapped
return this.$futureAddressBookData.then(function(addressbook) {
return addressbook.id;
if (addressbook)
return addressbook.id;
else
return AddressBook.$q.reject();
});
}
};