Skip to content

Commit

Permalink
CONCD-745 this does get rid of the jQuery error, but has a hardcoded …
Browse files Browse the repository at this point in the history
…value (#2329)
  • Loading branch information
rasarkar authored Mar 29, 2024
1 parent fe186fe commit 5114ea7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion concordia/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ <h2 class="h3 font-weight-normal text-center text-lg-left">Follow
var heights = $carouselItems.map(function() {
var height = $(this).height();
if (height <= 0) {
height = $(this).children[0].offsetHeight + 48;
var firstChild = $(this).children[0];
if (firstChild) {
height = firstChild.offsetHeight + 48;
} else {
return 517.195;
}
}
return height;
});
Expand Down

0 comments on commit 5114ea7

Please sign in to comment.