summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-29 08:18:41 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-29 08:18:41 +0200
commit3f74b363164c16c3b5301ad731ba25aba07fabd2 (patch)
treecc1047284f90b640ac21cb46aa3f545fc58985d0 /pages
parent7e4c0a59dba733f59b09b6d7abda0e576d24de54 (diff)
truly fixed it
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx4
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)