diff --git a/app/w/[id]/workflow.tsx b/app/w/[id]/workflow.tsx index a608c0746b..465421a567 100644 --- a/app/w/[id]/workflow.tsx +++ b/app/w/[id]/workflow.tsx @@ -212,18 +212,25 @@ export default function Workflow() { onDragOver={handleDragOver} onDrop={handleDrop} > - {blocks.map((block, index) => ( - - ))} + {blocks.map((block, index) => { + // Count how many blocks of this type appear before the current index + const typeCount = blocks + .slice(0, index + 1) + .filter((b) => b.type === block.type).length + + return ( + + ) + })} )