Commit 806345c0 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

[admin] Debug the pre selected norm option when there is no norm defined

parent aaba386b
......@@ -169,10 +169,15 @@ export class ResearcherListCmp{
this.selectedLaboId = this.laboId;
if(this.selectedLaboId != -1){
this.selectedLabo = this.labos[this.laboId];
this.norm = this.selectedLabo.norm;
if(this.location.path().indexOf(this.selectedLabo.name) == -1){
this.location.replaceState("/admin/"+this.selectedLabo.name);
}
if (this.selectedLabo.norm !== undefined) {
this.norm = this.selectedLabo.norm;
}
else {
this.norm = "default";
}
if(this.location.path().indexOf(this.selectedLabo.name) == -1){
this.location.replaceState("/admin/"+this.selectedLabo.name);
}
if(!this.selectedLabo.researchers){
this.researchersListLoading = true;
let predefinedResearcherNameTemp = this.predefinedResearcherName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment