Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(planner-list): preserve treeStatus value on workitem update (#2799)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil143 authored and nimishamukherjee committed Nov 12, 2018
1 parent c45d8bc commit f3fc9b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,12 @@ export class PlannerListComponent implements OnInit, OnDestroy, AfterViewChecked
this.loadChildren(this.workItems[index]);
} else {
this.workItems[index].treeStatus = 'expanded';
this.store.dispatch(new WorkItemActions.UpdateSuccess(this.workItems[index]));
this.workItems = [...this.workItems];
}
} else {
this.workItems[index].treeStatus = 'collapsed';
this.store.dispatch(new WorkItemActions.UpdateSuccess(this.workItems[index]));
this.workItems = [...this.workItems];
}
}
Expand Down

0 comments on commit f3fc9b3

Please sign in to comment.