Skip to content
Snippets Groups Projects
Commit 0471a21c authored by Maiykol's avatar Maiykol
Browse files

Fix bug to trigger update of legend component when config is changed

parent bccacd4d
No related branches found
No related tags found
No related merge requests found
Pipeline #11040 failed
......@@ -89,6 +89,8 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}
this.myConfig[key] = configObj[key];
}
// trigger updates on config e.g. in legend
this.myConfig = {...this.myConfig};
if (updateNetworkFlag && typeof this.networkJSON !== 'undefined') {
// update network if network config has changed and networkJSON exists
this.createNetwork();
......@@ -276,10 +278,6 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
this.showDetails = false;
}
// public async updateNetwork() {
// }
public async createNetwork() {
this.analysis.resetSelection();
this.selectedWrapper = null;
......
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