diff options
Diffstat (limited to 'pages/index.tsx')
-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 5a9c825..f47414c 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -491,7 +491,7 @@ export const Graph = function (props: GraphProps) { numbereWithinRange(neighbors, 0, visuals.nodeColorScheme.length - 1) ] } - const getLinkNodeColor = (link: OrgRoamLinkObject) => + const getLinkNodeColor = (link: OrgRoamLink) => linksByNodeId[link.target.id!]?.length < linksByNodeId[link.source.id!]?.length ? getNodeColorById(link.target.id!) : getNodeColorById(link.source.id!) @@ -532,7 +532,7 @@ export const Graph = function (props: GraphProps) { return highlightColors[visuals.linkColorScheme][visuals.linkHighlight](opacity) } - const getNodeColor = (node: OrgRoamNodeObject) => { + const getNodeColor = (node: OrgRoamNode) => { // I'm so sorry const needsHighlighting = highlightedNodes[node.id!] || previouslyHighlightedNodes[node.id!] // if we are matching the node color and don't have a highlight color |