Skip to content
Snippets Groups Projects
Commit 5eadc0b8 authored by Giuseppe Digilio's avatar Giuseppe Digilio
Browse files

Reverted inappropriate changes

parent 696b8b73
No related branches found
No related tags found
No related merge requests found
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);
}
}
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment