summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 50358c0..afb4bad 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -733,7 +733,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
linkDirectionalParticles: visuals.particles ? visuals.particlesNumber : undefined,
linkDirectionalArrowLength: visuals.arrows ? visuals.arrowsLength : undefined,
linkDirectionalArrowRelPos: visuals.arrowsPos,
- linkDirectionalArrowColor: (link) => getThemeColor(visuals.arrowsColor),
+ linkDirectionalArrowColor: visuals.arrowsColor
+ ? (link) => getThemeColor(visuals.arrowsColor)
+ : undefined,
linkColor: (link) => {
const sourceId = typeof link.source === 'object' ? link.source.id! : (link.source as string)
const targetId = typeof link.target === 'object' ? link.target.id! : (link.target as string)