mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
fixed missing take 1
This commit is contained in:
@@ -46,7 +46,7 @@ export class CreateComColPageComponent<TDomain extends DSpaceObject, TNormalized
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
||||||
this.parentUUID$.subscribe((parentID: string) => {
|
this.parentUUID$.pipe(take(1)).subscribe((parentID: string) => {
|
||||||
if (isNotEmpty(parentID)) {
|
if (isNotEmpty(parentID)) {
|
||||||
this.parentRD$ = this.parentDataService.findById(parentID);
|
this.parentRD$ = this.parentDataService.findById(parentID);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user