From ffaa70831ca7659535c6719fde3d9cd2e1282483 Mon Sep 17 00:00:00 2001 From: Michael Hartung <michi@Michaels-MacBook-Pro.local> Date: Thu, 29 Jul 2021 10:11:16 +0200 Subject: [PATCH] fix error when closing analysis window --- .../analysis-panel/analysis-panel.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/analysis-panel/analysis-panel.component.ts b/src/app/components/analysis-panel/analysis-panel.component.ts index 57015d98..f4dd3052 100644 --- a/src/app/components/analysis-panel/analysis-panel.component.ts +++ b/src/app/components/analysis-panel/analysis-panel.component.ts @@ -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( -- GitLab