From 3f74b363164c16c3b5301ad731ba25aba07fabd2 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 29 Jul 2021 08:18:41 +0200 Subject: truly fixed it --- pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 7653d60..97f76af 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -483,7 +483,7 @@ export const Graph = function (props: GraphProps) { : getNodeColorById(targetId) } - const getLinkColor = (sourceId: string, targetId: string, needsHighlighting: string) => { + const getLinkColor = (sourceId: string, targetId: string, needsHighlighting: boolean) => { // I'm so sorry // if we are matching the node color and don't have a highlight color // or we don't have our own scheme and we're not being highlighted @@ -625,7 +625,7 @@ export const Graph = function (props: GraphProps) { const linkIsHighlighted = isLinkRelatedToNode(link, centralHighlightedNode) const linkWasHighlighted = isLinkRelatedToNode(link, lastHoverNode.current) const needsHighlighting = linkIsHighlighted || linkWasHighlighted - return getLinkColor(sourceId, targetId, needsHighlighting) + return getLinkColor(sourceId as string, targetId as string, needsHighlighting) }, linkWidth: (link) => { const linkIsHighlighted = isLinkRelatedToNode(link, centralHighlightedNode) -- cgit v1.2.3