🚑 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])
|
||||
|
||||
const targetTop = useMemo(() => {
|
||||
if (targetEndpointYOffsets.size === 0) return
|
||||
if (edge.to.blockId) {
|
||||
const targetOffset = targetEndpointYOffsets.get(edge.to.blockId)
|
||||
if (!targetOffset) {
|
||||
|
Reference in New Issue
Block a user