Reverted inappropriate changes

This commit is contained in:
Giuseppe Digilio
2018-02-26 15:42:28 +01:00
parent 696b8b73f5
commit 5eadc0b898
2 changed files with 0 additions and 15 deletions

View File

@@ -1,8 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { isAuthenticated } from '../core/auth/selectors';
import { Observable } from 'rxjs/Observable';
import { AppState } from '../app.reducer';
import { Store } from '@ngrx/store';
@Component({
selector: 'ds-home-page',
@@ -10,14 +6,4 @@ import { Store } from '@ngrx/store';
templateUrl: './home-page.component.html'
})
export class HomePageComponent implements OnInit {
public isAuthenticated: Observable<boolean>;
constructor(private store: Store<AppState>) {
}
ngOnInit() {
// set loading
this.isAuthenticated = this.store.select(isAuthenticated);
}
}

View File

@@ -71,7 +71,6 @@ export class DSpaceRESTv2Service {
console.log(res);
return ({ payload: res.body, headers: res.headers, statusCode: res.statusText })
})
.share()
.catch((err) => {
console.log('Error: ', err);
return Observable.throw(err);