Skip to content
Snippets Groups Projects
Commit f970b5c8 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: on parcellation change, region hierarchy also changes

parent f4814fd3
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,10 @@ export class RegionHierarchy implements OnInit, AfterViewInit{
}
ngOnChanges(){
this.aggregatedRegionTree = {
name: this.selectedParcellation.name,
children: this.selectedParcellation.regions
}
this.displayTreeNode = getDisplayTreeNode(this.searchTerm, this.selectedRegions)
this.filterTreeBySearch = getFilterTreeBySearch(this.filterNameBySearchPipe, this.searchTerm)
}
......@@ -94,10 +98,6 @@ export class RegionHierarchy implements OnInit, AfterViewInit{
}
ngOnInit(){
this.aggregatedRegionTree = {
name: this.selectedParcellation.name,
children: this.selectedParcellation.regions
}
this.subscriptions.push(
this.handleRegionTreeClickSubject.pipe(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment