fix(canvas): replace undefined structureSignature with nodeSetSignature
Some checks failed
Stuffle/agos-client/pipeline/head There was a failure building this commit
Some checks failed
Stuffle/agos-client/pipeline/head There was a failure building this commit
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>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user