From ad2ee655db15696b88c64bec8c644ef239b5b9f0 Mon Sep 17 00:00:00 2001
From: Matthias Konitzny <konitzny@ibr.cs.tu-bs.de>
Date: Mon, 4 Oct 2021 12:48:33 +0200
Subject: [PATCH] Bugfix for the color strip generation of the filter overlay.

---
 display/overlays/filteroverlay.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/display/overlays/filteroverlay.js b/display/overlays/filteroverlay.js
index 76db39e..36c1cbb 100644
--- a/display/overlays/filteroverlay.js
+++ b/display/overlays/filteroverlay.js
@@ -48,7 +48,10 @@ class FilterOverlay {
             jQuery(relation).click((event) => this.toggleVisibility(event));
 
             const colorStrip = Helpers.createDiv("rel-container", relation);
-            colorStrip.style.backgroundColor = this.graph.edgeColors[link];
+            colorStrip.style.backgroundColor =
+                this.type === "link"
+                    ? this.graph.edgeColors[link]
+                    : this.graph.nodeColors[link];
             colorStrip.style.width = 10 * chars + "px";
         }
     }
-- 
GitLab