diff --git a/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js b/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js index e719eb4176..b1d753e9a6 100644 --- a/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js +++ b/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js @@ -196,7 +196,7 @@ validate: function() { var seededValue = document.querySelector(altInputSelector).getAttribute("data-seeded-value"); var imageFromPageImage = document.querySelector('coral-checkbox[name="./imageFromPageImage"]'); - var isImageFromPageImageChecked = imageFromPageImage?.checked || false; + var isImageFromPageImageChecked = imageFromPageImage ? (imageFromPageImage.checked || false) : false; var altFromDAM = document.querySelector('coral-checkbox[name="./altValueFromDAM"]'); var isAltFromDAMChecked = altFromDAM.checked; var isAltFromDAMDisabled = altFromDAM.disabled;