Skip to content

Commit

Permalink
Don't reload project in sidebar on every nav change
Browse files Browse the repository at this point in the history
  • Loading branch information
strassl committed Jan 30, 2017
1 parent 3c847bd commit fb2f76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class AppComponent implements OnInit, OnDestroy, ErrorHandler {
.filter(e => e instanceof NavigationStart)
.map(e => e.url)
.map(url => projectIdFromUrl(url))
.combineLatest(this.userObservable())
.distinctUntilChanged()
.combineLatest(this.userObservable())
.switchMap(projectIdAndUser => {
let projectId = projectIdAndUser[0];
let user = projectIdAndUser[1];
Expand Down

0 comments on commit fb2f76e

Please sign in to comment.