fixed missing take 1

This commit is contained in:
lotte
2019-01-04 14:16:35 +01:00
parent 1ebd6f0e86
commit 773973cdef

View File

@@ -46,7 +46,7 @@ export class CreateComColPageComponent<TDomain extends DSpaceObject, TNormalized
ngOnInit(): void {
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
this.parentUUID$.subscribe((parentID: string) => {
this.parentUUID$.pipe(take(1)).subscribe((parentID: string) => {
if (isNotEmpty(parentID)) {
this.parentRD$ = this.parentDataService.findById(parentID);
}