From a830c99f908cfa0b451e1987fb8644d6b85c8d53 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 26 May 2022 16:58:08 +0200 Subject: [PATCH] [CST-5307] Remove setStaleByHrefSubstring --- src/app/core/profile/researcher-profile.service.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) ); }