Entities selection: Initialize entities array to empty before add entities.
This commit is contained in:
parent
73f2215c07
commit
b14f76c2b0
|
@ -56,6 +56,7 @@ export class EntitiesSelectionComponent {
|
||||||
showPage["" + data['pages'][i]["route"] + ""] = data['pages'][i]["isEnabled"];
|
showPage["" + data['pages'][i]["route"] + ""] = data['pages'][i]["isEnabled"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.entities = [];
|
||||||
if(this.onlyresults) {
|
if(this.onlyresults) {
|
||||||
if(this.simpleView) {
|
if(this.simpleView) {
|
||||||
this.entities.push({label: 'All ' + OpenaireEntities.RESULTS.toLowerCase(), value: 'all'});
|
this.entities.push({label: 'All ' + OpenaireEntities.RESULTS.toLowerCase(), value: 'all'});
|
||||||
|
|
Loading…
Reference in New Issue