RED-8730: fixed error when opening dictionaries in settings..

This commit is contained in:
Nicoleta Panaghiu 2024-03-12 13:19:01 +02:00
parent 20c39de353
commit 70524ab31a

View File

@ -121,9 +121,11 @@ export class DictionaryManagerComponent implements OnChanges, OnInit {
}
set selectedDictionary(dictionary: Dictionary) {
this.selectedDictionaryType = dictionary.type;
this.#dictionary = dictionary;
this.#onDossierChanged(this.#dossier.dossierTemplateId).then(entries => this.#updateDiffEditorText(entries));
if (dictionary.type) {
this.selectedDictionaryType = dictionary.type;
this.#dictionary = dictionary;
this.#onDossierChanged(this.#dossier.dossierTemplateId).then(entries => this.#updateDiffEditorText(entries));
}
}
get optionNotSelected() {