From 619a98d289c0611a0c5a2b04491667598469edd1 Mon Sep 17 00:00:00 2001 From: Reece Browne <74901996+reecebrowne@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:01:51 +0100 Subject: [PATCH] Update stirling-pdf/src/main/resources/templates/fragments/common.html Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- stirling-pdf/src/main/resources/templates/fragments/common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 7802c475f..1bda883d2 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -92,7 +92,7 @@ // Check if this is a right-aligned dropdown (language, favorites, search, etc.) const isRightAligned = navbar && navbar.classList.contains('flex-nowrap') && - !parentItem.closest('.dropdown-mega'); + !parentItem?.closest('.dropdown-mega'); dropdown.style.transformOrigin = isRightAligned ? 'top right' : 'top left'; });