export class SearchService { ... .map((response) => response.json()) .catch((e) => { if (e.status >== 500) { return cachedVersion(); new Error(`${ e.status } ${ e.statusText }`) ); } });
export class SearchService {
...
.map((response) => response.json())
.catch((e) => {
if (e.status >== 500) {
return cachedVersion();
new Error(`${ e.status } ${ e.statusText }`)
);
}
});