Skip to content
Snippets Groups Projects
Commit ffaa7083 authored by Michael Hartung's avatar Michael Hartung
Browse files

fix error when closing analysis window

parent c2d83001
No related branches found
No related tags found
No related merge requests found
......@@ -300,12 +300,12 @@ export class AnalysisPanelComponent implements OnInit, OnChanges {
// else: selected is null
const updatedNodes = [];
this.nodeData.nodes.forEach((node) => {
let drugType;
let drugInTrial;
if (node.wrapper.data.netexId && node.wrapper.data.netexId.startswith('d')) {
drugType = node.wrapper.data.status;
drugInTrial = node.wrapper.data.inTrial;
}
// let drugType;
// let drugInTrial;
// if (node.netexId && node.netexId.startsWith('d')) {
// drugType = node.status;
// drugInTrial = node.inTrial;
// }
const isSeed = this.highlightSeeds ? this.seedMap[node.id] : false;
const gradient = (this.gradientMap !== {}) && (this.gradientMap[node.id]) ? this.gradientMap[node.id] : 1.0;
const nodeStyled = NetworkSettings.getNodeStyle(
......
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