diff options
-rw-r--r-- | pages/index.tsx | 4 |
1 files 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) |