From cee213e04252526e2d40b4b7c4c4d207df87ad07 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Fri, 21 Aug 2026 19:59:59 +0530 Subject: [PATCH] fix(canvas): replace undefined structureSignature with nodeSetSignature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fitView effect referenced structureSignature which does not exist in this scope — the correct variable is nodeSetSignature. This caused a ReferenceError at runtime when the effect ran after adding an edge. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- src/pages/workflows/components/WorkflowCanvas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workflows/components/WorkflowCanvas.tsx b/src/pages/workflows/components/WorkflowCanvas.tsx index ee2e0ab..571220e 100644 --- a/src/pages/workflows/components/WorkflowCanvas.tsx +++ b/src/pages/workflows/components/WorkflowCanvas.tsx @@ -164,7 +164,7 @@ export function WorkflowCanvas({ flowInstance.fitView({ padding: 0.3, duration: 260, maxZoom: 1.05, minZoom: 0.2 }) }, 30) return () => window.clearTimeout(t) - }, [flowInstance, structureSignature]) + }, [flowInstance, nodeSetSignature]) // Edge creation with validation const handleConnect = useCallback((conn: Connection) => {