mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fixed missing take 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user