File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1467,14 +1467,11 @@ async function handleEdgesOperationTx(
14671467 }
14681468
14691469 const safeEdgeIds = edgesToRemove
1470- .filter(
1471- (e: EdgeToRemove) =>
1472- !isBlockProtected(e.sourceBlockId) && !isBlockProtected(e.targetBlockId)
1473- )
1470+ .filter((e: EdgeToRemove) => !isBlockProtected(e.targetBlockId))
14741471 .map((e: EdgeToRemove) => e.id)
14751472
14761473 if (safeEdgeIds.length === 0) {
1477- logger.info('All edges are connected to protected blocks, skipping removal')
1474+ logger.info('All edges target protected blocks, skipping removal')
14781475 return
14791476 }
14801477
@@ -1566,13 +1563,13 @@ async function handleEdgesOperationTx(
15661563 return false
15671564 }
15681565
1569- // Filter edges - only add edges where neither block is protected
1566+ // Filter edges - only add edges where target block is not protected
15701567 const safeEdges = (edges as Array<Record<string, unknown>>).filter(
1571- (e) => !isBlockProtected(e.source as string) && !isBlockProtected(e. target as string)
1568+ (e) => !isBlockProtected(e.target as string)
15721569 )
15731570
15741571 if (safeEdges.length === 0) {
1575- logger.info('All edges connect to protected blocks, skipping add')
1572+ logger.info('All edges target protected blocks, skipping add')
15761573 return
15771574 }
15781575
You can’t perform that action at this time.
0 commit comments