diff --git a/src/components/ImageEditor.vue b/src/components/ImageEditor.vue index 66de6639a..60839d4db 100644 --- a/src/components/ImageEditor.vue +++ b/src/components/ImageEditor.vue @@ -189,7 +189,7 @@ export default { mutations.forEach((mutation) => { if (mutation.type === 'childList') { mutation.addedNodes.forEach((node) => { - if (node.classList.contains('FIE_root') || node.classList.contains('SfxModal-Wrapper')) { + if (node.classList?.contains('FIE_root') || node.classList?.contains('SfxModal-Wrapper')) { emit('viewer:trapElements:changed', node) } }) @@ -366,7 +366,7 @@ export default {