From 7903dd08c33c82446f9b96c5bff7f4b4cc0ca180 Mon Sep 17 00:00:00 2001 From: Harshith Mullapudi Date: Mon, 29 Sep 2025 09:48:52 +0530 Subject: [PATCH] fix: graph is not working in chrome 140 --- apps/webapp/app/components/graph/graph-clustering.tsx | 2 +- apps/webapp/app/components/graph/graph.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/webapp/app/components/graph/graph-clustering.tsx b/apps/webapp/app/components/graph/graph-clustering.tsx index 5232975..b58378d 100644 --- a/apps/webapp/app/components/graph/graph-clustering.tsx +++ b/apps/webapp/app/components/graph/graph-clustering.tsx @@ -689,7 +689,7 @@ export const GraphClustering = forwardRef< defaultDrawNodeHover: drawHover, maxCameraRatio: 2, - allowInvalidContainer: false, + allowInvalidContainer: true, }); sigmaRef.current = sigma; diff --git a/apps/webapp/app/components/graph/graph.tsx b/apps/webapp/app/components/graph/graph.tsx index 36543de..96bb63b 100644 --- a/apps/webapp/app/components/graph/graph.tsx +++ b/apps/webapp/app/components/graph/graph.tsx @@ -407,6 +407,7 @@ export const Graph = forwardRef( enableEdgeEvents: true, minCameraRatio: 0.1, maxCameraRatio: 2, + allowInvalidContainer: true, }); sigmaRef.current = sigma;