summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-29 06:26:13 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-29 06:26:13 +0200
commit020916f0b9f98d5e69cfc47e41402075862dd600 (patch)
tree82ca3084e1d26b52ab2d9f25e8b9c368a165d49b /pages
parent220a63994898fd65503fee2cd7ffc97d2583a2a5 (diff)
minor typeerrors
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 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