Skip to content

Commit

Permalink
[BUGFIX] fix js error when ariaLabels object is empty in LogoCarousel CE
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Jun 27, 2018
1 parent 0b13c3e commit abf817f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion felayout_t3kit/dev/js/main/contentElements/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Get json content from element LogoCarousel.html
var ariaLabels = document.getElementsByClassName('js__aria-labels')
if (ariaLabels) {
if (ariaLabels && ariaLabels.length > 0) {
// Use only first aria label object because they are all equal
var label = JSON.parse(ariaLabels[0].innerHTML)

Expand Down

0 comments on commit abf817f

Please sign in to comment.