You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/connection-blocks/connection-blocks.tsx
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
import{RepeatIcon,SplitIcon}from'lucide-react'
1
2
import{Card}from'@/components/ui/card'
2
3
import{cn}from'@/lib/utils'
3
4
import{
@@ -77,8 +78,20 @@ export function ConnectionBlocks({
77
78
// Get block configuration for icon and color
78
79
constblockConfig=getBlock(connection.type)
79
80
constdisplayName=connection.name// Use the actual block name instead of transforming it
80
-
constIcon=blockConfig?.icon
81
-
constbgColor=blockConfig?.bgColor||'#6B7280'// Fallback to gray
81
+
82
+
// Handle special blocks that aren't in the registry (loop and parallel)
83
+
letIcon=blockConfig?.icon
84
+
letbgColor=blockConfig?.bgColor||'#6B7280'// Fallback to gray
85
+
86
+
if(!blockConfig){
87
+
if(connection.type==='loop'){
88
+
Icon=RepeatIconastypeofIcon
89
+
bgColor='#2FB3FF'// Blue color for loop blocks
90
+
}elseif(connection.type==='parallel'){
91
+
Icon=SplitIconastypeofIcon
92
+
bgColor='#FEE12B'// Yellow color for parallel blocks
0 commit comments