From f49aeb5b9d0251790930dc29c7e3b437d6e31897 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 27 Dec 2023 00:01:44 +0100 Subject: [PATCH] fix(system): ssg edge creation --- packages/system/src/utils/edges/positions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/src/utils/edges/positions.ts b/packages/system/src/utils/edges/positions.ts index f05b547e..59b8cd42 100644 --- a/packages/system/src/utils/edges/positions.ts +++ b/packages/system/src/utils/edges/positions.ts @@ -16,7 +16,7 @@ export type GetEdgePositionParams = { }; function isNodeInitialized(node: NodeBase): boolean { - return !!node?.[internalsSymbol]?.handleBounds && !!node?.computed?.width; + return !!(node?.[internalsSymbol]?.handleBounds || node?.handles?.length) && !!(node?.computed?.width || node?.width); } export function getEdgePosition(params: GetEdgePositionParams): EdgePosition | null {