2
0

🐛 (editor) Fix edges connection issue when item.blockId does not match

This commit is contained in:
Baptiste Arnaud
2023-08-15 07:53:14 +02:00
parent 22cedb379d
commit 1cc282a5fc
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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"