🐛 (editor) Fix edges connection issue when item.blockId does not match
This commit is contained in:
@@ -141,7 +141,8 @@ export const SourceEndpoint = ({
|
||||
borderWidth="3.5px"
|
||||
shadow={`sm`}
|
||||
borderColor={
|
||||
previewingEdge?.from.blockId === source.blockId &&
|
||||
previewingEdge &&
|
||||
previewingEdge.from.blockId === source.blockId &&
|
||||
previewingEdge.from.itemId === source.itemId
|
||||
? connectedColor
|
||||
: color
|
||||
|
||||
@@ -116,7 +116,10 @@ export const ItemNode = ({
|
||||
<SourceEndpoint
|
||||
source={{
|
||||
groupId: typebot.groups[indices.groupIndex].id,
|
||||
blockId: item.blockId,
|
||||
blockId:
|
||||
typebot.groups[indices.groupIndex].blocks[
|
||||
indices.blockIndex
|
||||
].id,
|
||||
itemId: item.id,
|
||||
}}
|
||||
pos="absolute"
|
||||
|
||||
Reference in New Issue
Block a user