Entities selection: Initialize entities array to empty before add entities.

This commit is contained in:
Konstantinos Triantafyllou 2023-05-24 12:36:22 +03:00
parent 73f2215c07
commit b14f76c2b0
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ export class EntitiesSelectionComponent {
showPage["" + data['pages'][i]["route"] + ""] = data['pages'][i]["isEnabled"];
}
}
this.entities = [];
if(this.onlyresults) {
if(this.simpleView) {
this.entities.push({label: 'All ' + OpenaireEntities.RESULTS.toLowerCase(), value: 'all'});