✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix #444
AykutSarac629c4c43e8f2
diff --git a/.env b/.envindex 85588fc4..b4d840a3 100644--- a/.env+++ b/.env@@ -1,2 +1,3 @@NEXT_PUBLIC_GA_MEASUREMENT_ID=G-JKZEHMJBMH+NEXT_PUBLIC_NODE_LIMIT=600NEXT_TELEMETRY_DISABLED=1\ No newline at end of filediff --git a/.env.development b/.env.developmentnew file mode 100644index 00000000..a13af921--- /dev/null+++ b/.env.development@@ -0,0 +1 @@+NEXT_PUBLIC_NODE_LIMIT=1000diff --git a/src/features/editor/views/GraphView/index.tsx b/src/features/editor/views/GraphView/index.tsxindex ea5dc8e3..4db97f60 100644--- a/src/features/editor/views/GraphView/index.tsx+++ b/src/features/editor/views/GraphView/index.tsx@@ -134,7 +134,7 @@ const GraphCanvas = ({ isWidget }: GraphProps) => {);};-const SUPPORTED_LIMIT = 600;+const SUPPORTED_LIMIT = +(process.env.NEXT_PUBLIC_NODE_LIMIT as string);export const GraphView = ({ isWidget = false }: GraphProps) => {const setViewPort = useGraph(state => state.setViewPort);