From 133592034881926dc2da63735fe7344bfedd9c31 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 May 2018 10:50:30 +0200 Subject: Fix rxjs throw --- client/src/app/login/login.component.ts | 3 +-- client/src/app/shared/rest/rest-extractor.service.ts | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'client/src') diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index f7b49ec45..2514faf94 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -40,8 +40,7 @@ export class LoginComponent extends FormReactive implements OnInit { private serverService: ServerService, private redirectService: RedirectService, private notificationsService: NotificationsService, - private formBuilder: FormBuilder, - private router: Router) { + private formBuilder: FormBuilder) { super() } diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 4cfe28536..db087d407 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts @@ -85,8 +85,6 @@ export class RestExtractor { errorObj.body = err.error } - observableThrowError(errorObj) - - return of(undefined) + return observableThrowError(errorObj) } } -- cgit v1.2.3