Skip to content

Commit

Permalink
🚑 (editor) Fix move block with outgoing edge
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Nov 8, 2023
1 parent b73ca7a commit 58b9e0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const moveBlockToGroup = (
const newBlock = { ...block }
if (block.outgoingEdgeId) {
if (typebot.groups[groupIndex].blocks.length > blockIndex ?? 0) {
deleteEdgeDraft({ typebot, edgeId: block.outgoingEdgeId })
deleteEdgeDraft({ typebot, edgeId: block.outgoingEdgeId, groupIndex })
newBlock.outgoingEdgeId = undefined
} else {
const edgeIndex = typebot.edges.findIndex(byId(block.outgoingEdgeId))
Expand Down

1 comment on commit 58b9e0b

@vercel
Copy link

@vercel vercel bot commented on 58b9e0b Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

Please sign in to comment.