File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/utils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,10 @@ export function getEdgeSelectionContextId(
236236) : string | null {
237237 const sourceNode = nodes . find ( ( node ) => node . id === edge . source )
238238 const targetNode = nodes . find ( ( node ) => node . id === edge . target )
239- if ( sourceNode ) return getNodeSelectionContextId ( sourceNode , blocks )
240- if ( targetNode ) return getNodeSelectionContextId ( targetNode , blocks )
239+ const sourceContextId = sourceNode ? getNodeSelectionContextId ( sourceNode , blocks ) : null
240+ const targetContextId = targetNode ? getNodeSelectionContextId ( targetNode , blocks ) : null
241+ if ( sourceContextId ) return sourceContextId
242+ if ( targetContextId ) return targetContextId
241243 return null
242244}
243245
You can’t perform that action at this time.
0 commit comments