🐛 (editor) Fix groups paste when edge is not copied
This commit is contained in:
@ -164,6 +164,8 @@ const groupsActions = (setTypebot: SetTypebot): GroupsActions => ({
|
|||||||
id: outgoingEdgeId,
|
id: outgoingEdgeId,
|
||||||
})
|
})
|
||||||
oldToNewIdsMapping.set(item.id, id)
|
oldToNewIdsMapping.set(item.id, id)
|
||||||
|
} else {
|
||||||
|
outgoingEdgeId = undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@ -183,6 +185,8 @@ const groupsActions = (setTypebot: SetTypebot): GroupsActions => ({
|
|||||||
...edge,
|
...edge,
|
||||||
id: outgoingEdgeId,
|
id: outgoingEdgeId,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
outgoingEdgeId = undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user