From dd9057169fe975188b87e22bcbe4e6910bec63ac Mon Sep 17 00:00:00 2001 From: Dean Date: Thu, 31 Oct 2024 10:44:03 +0000 Subject: [PATCH] Lint --- .../automation/AutomationBuilder/FlowChart/FlowItem.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } }