[CST-5307] fix issue with unsubscribed subscription

This commit is contained in:
Giuseppe Digilio
2022-05-26 16:36:03 +02:00
parent bc37372f05
commit 87064761b5

View File

@@ -80,6 +80,7 @@ export class ProfilePageResearcherFormComponent implements OnInit {
this.processingCreate$.next(true); this.processingCreate$.next(true);
this.authService.getAuthenticatedUserFromStore().pipe( this.authService.getAuthenticatedUserFromStore().pipe(
take(1),
switchMap((currentUser) => this.profileClaimService.hasProfilesToSuggest(currentUser))) switchMap((currentUser) => this.profileClaimService.hasProfilesToSuggest(currentUser)))
.subscribe((hasProfilesToSuggest) => { .subscribe((hasProfilesToSuggest) => {