filter to avoid side effects

pull/5394/head
Jens Ulferts 8 years ago
parent 1c946150c9
commit 08fdac69b1
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      frontend/app/components/routing/wp-details/wp-details.controller.ts

@ -57,6 +57,8 @@ export class WorkPackageDetailsController extends WorkPackageViewController {
scopedObservable(
$scope,
this.states.focusedWorkPackage.values$())
.map(wpId => parseInt(wpId))
.distinctUntilChanged()
.subscribe((wpId) => {
if ($state.includes('work-packages.list.details')) {
$state.go(

Loading…
Cancel
Save