From 629c4c43e8f2df8870764ad94eb20105cac5aa18 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Wed, 18 Dec 2024 10:34:12 +0300 Subject: [PATCH] fix #444 --- .env | 1 + .env.development | 1 + src/features/editor/views/GraphView/index.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env.development diff --git a/.env b/.env index 85588fc4661..b4d840a3125 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ NEXT_PUBLIC_GA_MEASUREMENT_ID=G-JKZEHMJBMH +NEXT_PUBLIC_NODE_LIMIT=600 NEXT_TELEMETRY_DISABLED=1 \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 00000000000..a13af9210c2 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +NEXT_PUBLIC_NODE_LIMIT=1000 diff --git a/src/features/editor/views/GraphView/index.tsx b/src/features/editor/views/GraphView/index.tsx index ea5dc8e3dbd..4db97f60760 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);