🚑 Fix auto delete invalid edge when offsets are not loaded
This commit is contained in:
@ -61,6 +61,7 @@ export const Edge = ({ edge, fromGroupId }: Props) => {
|
|||||||
}, [edge.from, sourceEndpointYOffsets])
|
}, [edge.from, sourceEndpointYOffsets])
|
||||||
|
|
||||||
const targetTop = useMemo(() => {
|
const targetTop = useMemo(() => {
|
||||||
|
if (targetEndpointYOffsets.size === 0) return
|
||||||
if (edge.to.blockId) {
|
if (edge.to.blockId) {
|
||||||
const targetOffset = targetEndpointYOffsets.get(edge.to.blockId)
|
const targetOffset = targetEndpointYOffsets.get(edge.to.blockId)
|
||||||
if (!targetOffset) {
|
if (!targetOffset) {
|
||||||
|
Reference in New Issue
Block a user