diff --git a/web/libs/editor/src/components/InteractiveOverlays/watchers/DOMWatcher.js b/web/libs/editor/src/components/InteractiveOverlays/watchers/DOMWatcher.js index 0a2c92ca9127..5e1ec4704c66 100644 --- a/web/libs/editor/src/components/InteractiveOverlays/watchers/DOMWatcher.js +++ b/web/libs/editor/src/components/InteractiveOverlays/watchers/DOMWatcher.js @@ -12,6 +12,8 @@ export class DOMWatcher { } handleUpdate() { + if (!this.element) return; + this.observer = new MutationObserver(this.onUpdate); this.observer.observe(this.element, { attributes: true });