From 2dbf8c54d0bb8e90cfa7f45697061d13e410a6a1 Mon Sep 17 00:00:00 2001
From: Leonardo <leomilho@gmail.com>
Date: Wed, 12 Jun 2024 20:45:30 +0200
Subject: [PATCH] fix: nodelink without settings

---
 libs/shared/lib/vis/visualizations/nodelinkvis/nodelinkvis.tsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/shared/lib/vis/visualizations/nodelinkvis/nodelinkvis.tsx b/libs/shared/lib/vis/visualizations/nodelinkvis/nodelinkvis.tsx
index 05406c258..f5c06cf4f 100644
--- a/libs/shared/lib/vis/visualizations/nodelinkvis/nodelinkvis.tsx
+++ b/libs/shared/lib/vis/visualizations/nodelinkvis/nodelinkvis.tsx
@@ -127,6 +127,8 @@ const NodelinkSettings = ({ settings, graphMetadata, updateSettings }: Visualiza
     }
   }, [graphMetadata]);
 
+  if (!settings.nodeList) return null;
+
   return (
     <SettingsContainer>
       <div className="mb-4 text-xs">
-- 
GitLab