diff --git a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts index 91691f80b..66cdc3fc6 100644 --- a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts @@ -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() {