From 5114ea77f699f0fddf25d14b1525301c45b9148f Mon Sep 17 00:00:00 2001 From: rasarkar <105652044+rasarkar@users.noreply.github.com> Date: Fri, 29 Mar 2024 09:43:47 -0400 Subject: [PATCH] CONCD-745 this does get rid of the jQuery error, but has a hardcoded value (#2329) --- concordia/templates/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/concordia/templates/base.html b/concordia/templates/base.html index e0852fc8d..07bac56d5 100644 --- a/concordia/templates/base.html +++ b/concordia/templates/base.html @@ -285,7 +285,12 @@

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; });