Skip to content

Commit 687733d

Browse files
committed
removed recovery
1 parent b24f119 commit 687733d

File tree

1 file changed

+0
-12
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]

1 file changed

+0
-12
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,18 +1788,6 @@ const WorkflowContent = React.memo(() => {
17881788
return
17891789
}
17901790

1791-
// Recovery: detect and clear invalid parent references to prevent infinite recursion
1792-
if (block.data?.parentId) {
1793-
if (block.data.parentId === block.id) {
1794-
block.data = { ...block.data, parentId: undefined, extent: undefined }
1795-
} else {
1796-
const parentBlock = blocks[block.data.parentId]
1797-
if (parentBlock?.data?.parentId === block.id) {
1798-
block.data = { ...block.data, parentId: undefined, extent: undefined }
1799-
}
1800-
}
1801-
}
1802-
18031791
// Handle container nodes differently
18041792
if (block.type === 'loop' || block.type === 'parallel') {
18051793
nodeArray.push({

0 commit comments

Comments
 (0)