@hmcts/ccd-case-ui-toolkit 7.0.17-beta01 → 7.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/shared/services/organisation/organisation.service.mjs +3 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +1 -4
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +1 -4
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/services/organisation/organisation.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7258,14 +7258,11 @@ class OrganisationService {
|
|
|
7258
7258
|
const url = this.appconfig.getPrdUrl();
|
|
7259
7259
|
const cacheTimeOut = this.appconfig.getCacheTimeOut();
|
|
7260
7260
|
this.organisations$ = this.http.get(url)
|
|
7261
|
-
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1), refCount(), take(1), catchError(e => {
|
|
7261
|
+
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1, cacheTimeOut), refCount(), take(1), catchError(e => {
|
|
7262
7262
|
console.log(e);
|
|
7263
7263
|
// Handle error and return blank Observable array
|
|
7264
7264
|
return of([]);
|
|
7265
7265
|
}));
|
|
7266
|
-
timer(cacheTimeOut).subscribe(() => {
|
|
7267
|
-
this.organisations$ = null;
|
|
7268
|
-
});
|
|
7269
7266
|
}
|
|
7270
7267
|
return this.organisations$;
|
|
7271
7268
|
}
|