diff options
Diffstat (limited to 'client/src/app/core/rest/rest-extractor.service.ts')
-rw-r--r-- | client/src/app/core/rest/rest-extractor.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/rest/rest-extractor.service.ts b/client/src/app/core/rest/rest-extractor.service.ts index 2a926e68f..29a56ba39 100644 --- a/client/src/app/core/rest/rest-extractor.service.ts +++ b/client/src/app/core/rest/rest-extractor.service.ts | |||
@@ -89,7 +89,7 @@ export class RestExtractor { | |||
89 | errorObj.body = err.error | 89 | errorObj.body = err.error |
90 | } | 90 | } |
91 | 91 | ||
92 | return observableThrowError(errorObj) | 92 | return observableThrowError(() => errorObj) |
93 | } | 93 | } |
94 | 94 | ||
95 | redirectTo404IfNotFound (obj: { status: number }, type: 'video' | 'other', status = [ HttpStatusCode.NOT_FOUND_404 ]) { | 95 | redirectTo404IfNotFound (obj: { status: number }, type: 'video' | 'other', status = [ HttpStatusCode.NOT_FOUND_404 ]) { |
@@ -98,6 +98,6 @@ export class RestExtractor { | |||
98 | this.router.navigate([ '/404' ], { state: { type, obj }, skipLocationChange: true }) | 98 | this.router.navigate([ '/404' ], { state: { type, obj }, skipLocationChange: true }) |
99 | } | 99 | } |
100 | 100 | ||
101 | return observableThrowError(obj) | 101 | return observableThrowError(() => obj) |
102 | } | 102 | } |
103 | } | 103 | } |