diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte index 39e92e2fc2..286347f0b6 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte @@ -48,7 +48,10 @@ let blockDims const updateBlockDims = () => { - const { width, height } = blockEle?.getBoundingClientRect() + if (!blockEle) { + return + } + const { width, height } = blockEle.getBoundingClientRect() blockDims = { width: width / $view.scale, height: height / $view.scale } }