During submission retrieve collection list only at first load

This commit is contained in:
Giuseppe Digilio
2019-07-25 19:16:08 +02:00
parent 2ff1b88bac
commit 50024c8c55

View File

@@ -209,6 +209,8 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
elementsPerPage: 100
};
// Retrieve collection list only when is the first change
if (changes.currentCollectionId.isFirstChange()) {
// @TODO replace with search/top browse endpoint
// @TODO implement community/subcommunity hierarchy
const communities$ = this.communityDataService.findAll(findOptions).pipe(
@@ -248,6 +250,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
}));
}
}
}
/**
* Initialize all instance variables