100302: Change error check to hasFailed

This commit is contained in:
Yana De Pauw
2023-04-03 17:48:30 +02:00
parent 6c5ae4972e
commit 3590582832

View File

@@ -365,7 +365,7 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
if (hasCachedResponse) { if (hasCachedResponse) {
return this.rdbService.buildSingle(href$).pipe( return this.rdbService.buildSingle(href$).pipe(
getFirstCompletedRemoteData(), getFirstCompletedRemoteData(),
map((rd => rd.isError || rd.isErrorStale)) map((rd => rd.hasFailed))
); );
} }
return observableOf(false); return observableOf(false);