Commit 5502cc00 authored by Alicia.DeDiosFuente's avatar Alicia.DeDiosFuente
Browse files

fix: show labels text in research domain

parent 317e581c
......@@ -34,6 +34,7 @@ export class AdminResearchDomainFormPresentational extends SharedAbstractFormPre
@Input()
set languages(value: Language[]) {
this._languages = value;
if (isNullOrUndefined(this.languages)) {
return;
}
......@@ -47,7 +48,7 @@ export class AdminResearchDomainFormPresentational extends SharedAbstractFormPre
this.addControl(language.resId);
return;
}
this.addControl(language.resId, existingValue.description);
this.addControl(language.resId, existingValue.text);
});
}
......@@ -87,7 +88,7 @@ export class AdminResearchDomainFormPresentational extends SharedAbstractFormPre
const newLabels: ResearchDomainLabel[] = [];
this.languages.forEach(language => {
newLabels.push({
description: researchDomains[language.resId],
text: researchDomains[language.resId],
language: language,
});
});
......
import {Language} from "@models";
export interface ResearchDomainLabel {
description: string;
text: string;
language: Language;
}
Supports Markdown
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