[DURACOM-155] small fix

This commit is contained in:
Alisa Ismailati
2023-06-14 09:44:58 +02:00
parent ec8470de06
commit 3b93f5bd23

View File

@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core'; import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { ComcolMetadataComponent } from '../../../shared/comcol/comcol-forms/edit-comcol-page/comcol-metadata/comcol-metadata.component'; import { ComcolMetadataComponent } from '../../../shared/comcol/comcol-forms/edit-comcol-page/comcol-metadata/comcol-metadata.component';
import { Collection } from '../../../core/shared/collection.model'; import { Collection } from '../../../core/shared/collection.model';
import { CollectionDataService } from '../../../core/data/collection-data.service'; import { CollectionDataService } from '../../../core/data/collection-data.service';
@@ -40,6 +40,7 @@ export class CollectionMetadataComponent extends ComcolMetadataComponent<Collect
protected notificationsService: NotificationsService, protected notificationsService: NotificationsService,
protected translate: TranslateService, protected translate: TranslateService,
protected requestService: RequestService, protected requestService: RequestService,
protected chd: ChangeDetectorRef
) { ) {
super(collectionDataService, router, route, notificationsService, translate); super(collectionDataService, router, route, notificationsService, translate);
} }
@@ -57,6 +58,7 @@ export class CollectionMetadataComponent extends ComcolMetadataComponent<Collect
) { ) {
super.ngOnInit(); super.ngOnInit();
this.initTemplateItem(); this.initTemplateItem();
this.chd.detectChanges();
} }
}); });
} }