From c346306ae90b9ee60a279ecdaa09dd4d8f718434 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Sun, 1 Aug 2021 15:33:58 +0200
Subject: fixed arrow color and added build

---
 pages/index.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'pages/index.tsx')

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)
-- 
cgit v1.2.3

