diff --git a/deploy/bkwdCompat/urlState.js b/deploy/bkwdCompat/urlState.js index 52b245bcc54d7b6c1bc2a479a354651e215143e7..14b765d3472a9831cd9e6215f566cc7c0a410956 100644 --- a/deploy/bkwdCompat/urlState.js +++ b/deploy/bkwdCompat/urlState.js @@ -120,7 +120,7 @@ const WARNING_STRINGS = { REGION_SELECT_ERROR: 'Region selected cannot be processed properly.', TEMPLATE_ERROR: 'Template not found.', } -const pliPreviewUrl = `/a:juelich:iav:atlas:v1.0.0:1/t:minds:core:referencespace:v1.0.0:a1655b99-82f1-420f-a3c2-fe80fd4c8588/p:juelich:iav:atlas:v1.0.0:4/@:0.0.0.-W000.._eCwg.2-FUe3._-s_W.2_evlu..7LIy..1qI1a.D31U~.i-Os~..HRE/f:siibra:features:voi:19c437087299dd62e7c507200f69aea6` +const pliPreviewUrl = `/a:juelich:iav:atlas:v1.0.0:1/t:minds:core:referencespace:v1.0.0:a1655b99-82f1-420f-a3c2-fe80fd4c8588/p:juelich:iav:atlas:v1.0.0:4/@:0.2-4Fk_.-KlpS.0.._eCwg.2-FUe3._-s_W.2_evlu..7LIy..1WNl8.6Tjd~.bTYu~..Zdk/f:b08a7dbc-7c75-4ce7-905b-690b2b1e8957--d3ca8fe622051466a5cde547a11111ca` module.exports = (query, _warningCb) => { const HOST_PATHNAME = process.env.HOST_PATHNAME || '' diff --git a/src/util/priority.ts b/src/util/priority.ts index 5ad57d734e917d5547763a6ac71c19e6d64b9b57..2dcd8a28b3e6fdbafeddf73bd9ec35c22d1830dd 100644 --- a/src/util/priority.ts +++ b/src/util/priority.ts @@ -32,7 +32,7 @@ export class PriorityHttpInterceptor implements HttpInterceptor{ private priorityQueue: Queue[] = [] private currentJob: Set<string> = new Set() - private archive: Map<string, (HttpResponse<unknown>|Error)> = new Map() + private archive: Map<string, (HttpErrorResponse|HttpResponse<unknown>|Error)> = new Map() private queue$: Subject<Queue> = new Subject() private result$: Subject<Result<unknown>> = new Subject() private error$: Subject<ErrorResult> = new Subject() @@ -138,6 +138,9 @@ export class PriorityHttpInterceptor implements HttpInterceptor{ if (archive instanceof Error) { return throwError(archive) } + if (archive instanceof HttpErrorResponse) { + return throwError(archive) + } if (archive instanceof HttpResponse) { return of( archive.clone() ) }