🐛 (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"
|
borderWidth="3.5px"
|
||||||
shadow={`sm`}
|
shadow={`sm`}
|
||||||
borderColor={
|
borderColor={
|
||||||
previewingEdge?.from.blockId === source.blockId &&
|
previewingEdge &&
|
||||||
|
previewingEdge.from.blockId === source.blockId &&
|
||||||
previewingEdge.from.itemId === source.itemId
|
previewingEdge.from.itemId === source.itemId
|
||||||
? connectedColor
|
? connectedColor
|
||||||
: color
|
: color
|
||||||
|
|||||||
@@ -116,7 +116,10 @@ export const ItemNode = ({
|
|||||||
<SourceEndpoint
|
<SourceEndpoint
|
||||||
source={{
|
source={{
|
||||||
groupId: typebot.groups[indices.groupIndex].id,
|
groupId: typebot.groups[indices.groupIndex].id,
|
||||||
blockId: item.blockId,
|
blockId:
|
||||||
|
typebot.groups[indices.groupIndex].blocks[
|
||||||
|
indices.blockIndex
|
||||||
|
].id,
|
||||||
itemId: item.id,
|
itemId: item.id,
|
||||||
}}
|
}}
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
|
|||||||
Reference in New Issue
Block a user