mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
100302: Change error check to hasFailed
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user