fix parent collection list #342

This commit is contained in:
vnmedeiros 2020-01-23 11:12:20 -03:00
parent 6d18070ab1
commit abd67d6510
1 changed files with 13 additions and 7 deletions

View File

@ -683,14 +683,20 @@ export default {
// Generates options for parent collection
this.isFetchingCollections = true;
this.fetchAllCollectionNames()
.then((collections) => {
this.collections = collections;
this.isFetchingCollections = false;
.then((resp) => {
resp.request.then((collections) => {
this.collections = collections;
this.isFetchingCollections = false;
})
.catch((error) => {
this.$console.error(error);
this.isFetchingCollections = false;
});
})
.catch((error) => {
this.$console.error(error);
this.isFetchingCollections = false;
});
.catch((error) => {
this.$console.error(error);
this.isFetchingCollections = false;
});
this.isLoading = false;