diff --git a/src/util/pureConstant.service.ts b/src/util/pureConstant.service.ts index 3c51b9e2d6bf7e07615a8b535dc3a9bbfb8b3edc..2f9e6bafd5d980217c4daaeb0893766966d74996 100644 --- a/src/util/pureConstant.service.ts +++ b/src/util/pureConstant.service.ts @@ -76,7 +76,11 @@ export class PureContantService implements OnDestroy{ ) public getTemplateEndpoint$ = this.http.get<any[]>(`${this.backendUrl}templates`, { responseType: 'json' }).pipe( - shareReplay(1) + catchError(() => { + this.log.warn(`fetching root /tempaltes error`) + return of([]) + }), + shareReplay(), ) public initFetchTemplate$ = this.getTemplateEndpoint$.pipe(