RED-8045 - Dossier template selection/filter at dossier dictionary comparison

This commit is contained in:
Valentin Mihai 2024-01-10 17:59:08 +02:00
parent 08ce6e4dcd
commit 6563456d57

View File

@ -246,6 +246,7 @@ export class DictionaryManagerComponent implements OnChanges, OnInit {
#updateDropdownsOptions(updateSelectedDossierTemplate = true) {
if (updateSelectedDossierTemplate) {
this.currentDossierTemplateId = this.#initialDossierTemplateId ?? this.currentDossierTemplateId;
this.dossierTemplates = this.#templatesWithCurrentEntityType;
this.selectedDossierTemplate = this.dossierTemplates.find(t => t.id === this.currentDossierTemplateId);
}