diff --git a/ui/src/builder/BuilderInstanceTracker.vue b/ui/src/builder/BuilderInstanceTracker.vue index 8a5aded0d..bb6fedcb3 100644 --- a/ui/src/builder/BuilderInstanceTracker.vue +++ b/ui/src/builder/BuilderInstanceTracker.vue @@ -45,7 +45,9 @@ const trackElement = (el: HTMLElement) => { let trackerX = elX; let trackerY = elY + yAdjustment; - let settingsWidth = document.getElementsByClassName("BuilderSettings")[0].clientWidth; + let settingsWidth = + document.getElementsByClassName("BuilderSettings")?.[0]?.clientWidth || + 0; if (!isOffBoundsAllowed.value) { trackerX = Math.max(rendererX, trackerX); // Left boundary