From f05bc969c8e4a372b835a69664d5579699eea9c5 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 28 May 2025 14:49:52 +0530 Subject: [PATCH] address comment. --- src/lib/components/billing/gradientBanner.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/billing/gradientBanner.svelte b/src/lib/components/billing/gradientBanner.svelte index 7a3adca7a..27c58ce62 100644 --- a/src/lib/components/billing/gradientBanner.svelte +++ b/src/lib/components/billing/gradientBanner.svelte @@ -16,7 +16,7 @@ }); const setNavigationHeight = () => { - const alertHeight = container?.getBoundingClientRect().height || 0; + const alertHeight = container?.getBoundingClientRect()?.height || 0; const { header, sidebar, content } = queryLayoutElements(); const headerHeight = header?.getBoundingClientRect().height || 0; const offset = alertHeight + (!isTabletViewport && header ? headerHeight : 0);