diff --git a/src/app/core/profile/researcher-profile.service.ts b/src/app/core/profile/researcher-profile.service.ts index 705b3ebc65..006b0b554b 100644 --- a/src/app/core/profile/researcher-profile.service.ts +++ b/src/app/core/profile/researcher-profile.service.ts @@ -6,7 +6,7 @@ import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { ReplaceOperation } from 'fast-json-patch'; import { Observable } from 'rxjs'; -import { find, map, tap } from 'rxjs/operators'; +import { find, map } from 'rxjs/operators'; import { NotificationsService } from '../../shared/notifications/notifications.service'; import { dataService } from '../cache/builders/build-decorators'; @@ -108,11 +108,6 @@ export class ResearcherProfileService { public delete(researcherProfile: ResearcherProfile): Observable { return this.dataService.delete(researcherProfile.id).pipe( getFirstCompletedRemoteData(), - tap((response: RemoteData) => { - if (response.isSuccess) { - this.requestService.setStaleByHrefSubstring(researcherProfile._links.self.href); - } - }), map((response: RemoteData) => response.isSuccess) ); }