(js) Fix auto-completion of list members

Fixes #3870
This commit is contained in:
Francis Lachapelle
2016-10-26 15:48:40 -04:00
parent 1d09a980da
commit 7310834ac6
4 changed files with 10 additions and 12 deletions
@@ -481,7 +481,7 @@
var futureData = AddressBook.$$resource.fetch(addressbookId, 'view', query);
if (dry) {
futureData.then(function(response) {
return futureData.then(function(response) {
var results, headers, card, index, fields, idFieldIndex,
cards = _this.$$cards,
compareIds = function(card) {
@@ -539,13 +539,12 @@
}
});
_this.$isLoading = false;
return cards;
});
}
else {
// Unwrap promise and instantiate or extend Cards objets
_this.$unwrap(futureData);
return _this.$unwrap(futureData);
}
});
});