From 8d94cd051d064e45a7b8320aefb5542c9c767403 Mon Sep 17 00:00:00 2001
From: Julian Matschinske <julian.matschinske@wzw.tum.de>
Date: Thu, 9 Apr 2020 20:32:14 +0200
Subject: [PATCH] Fix unconnected drugs bus

TODO: Find better fix
---
 .../components/analysis-window/analysis-window.component.ts    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/components/analysis-window/analysis-window.component.ts b/src/app/components/analysis-window/analysis-window.component.ts
index 170d0dee..4e8601fd 100644
--- a/src/app/components/analysis-window/analysis-window.component.ts
+++ b/src/app/components/analysis-window/analysis-window.component.ts
@@ -299,7 +299,8 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
         color: NetworkSettings.getColor('edgeHostVirus'),
         highlight: NetworkSettings.getColor('edgeHostVirusHighlight')
       };
-      const {from, to} = getNodeIdsFromPPI(edge);
+      const from = edge.from.startsWith('DB') ? `d_${edge.from}` : `p_${edge.from}`;
+      const to = edge.to.startsWith('DB') ? `d_${edge.to}` : `p_${edge.to}`;
       return {
         from, to,
         color: edgeColor,
-- 
GitLab