Skip to content
Snippets Groups Projects
Commit 773973cd authored by lotte's avatar lotte
Browse files

fixed missing take 1

parent 1ebd6f0e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment