Skip to content

Commit

Permalink
[SITES-22335] js parse error fix 2 (#2828)
Browse files Browse the repository at this point in the history
* [SITES-22335] js parse error fix 2

* [SITES-22335] js parse error fix 3

---------

Co-authored-by: Egor_Cheptsov
  • Loading branch information
YahorC authored Jul 31, 2024
1 parent 681d1bf commit 0c971e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c971e7

Please sign in to comment.