Skip to content

Commit 629c4c4

Browse files
committed
fix #444
1 parent f3262e7 commit 629c4c4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-JKZEHMJBMH
2+
NEXT_PUBLIC_NODE_LIMIT=600
23
NEXT_TELEMETRY_DISABLED=1

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_NODE_LIMIT=1000

src/features/editor/views/GraphView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const GraphCanvas = ({ isWidget }: GraphProps) => {
134134
);
135135
};
136136

137-
const SUPPORTED_LIMIT = 600;
137+
const SUPPORTED_LIMIT = +(process.env.NEXT_PUBLIC_NODE_LIMIT as string);
138138

139139
export const GraphView = ({ isWidget = false }: GraphProps) => {
140140
const setViewPort = useGraph(state => state.setViewPort);

0 commit comments

Comments
 (0)