From aeefd84166d8849d82e5729b853c2ebff71aa115 Mon Sep 17 00:00:00 2001 From: seaerchin Date: Tue, 3 Oct 2023 13:03:29 +0800 Subject: [PATCH] fix(herocenteredlayout): make dropdown optional --- src/templates/homepage/HeroSection/HeroCenteredLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/homepage/HeroSection/HeroCenteredLayout.tsx b/src/templates/homepage/HeroSection/HeroCenteredLayout.tsx index c5bab78ee..c355477b1 100644 --- a/src/templates/homepage/HeroSection/HeroCenteredLayout.tsx +++ b/src/templates/homepage/HeroSection/HeroCenteredLayout.tsx @@ -13,7 +13,7 @@ interface HeroCenteredLayoutProps { title?: string subtitle?: string button?: string - dropdown: EditorHeroDropdownSection["dropdown"] + dropdown?: EditorHeroDropdownSection["dropdown"] } dropdownIsActive: boolean toggleDropdown: () => void @@ -75,7 +75,7 @@ export const HeroCenteredLayout = ({

) : null} {/* Hero dropdown */} - {hero.dropdown.title ? ( + {hero.dropdown?.title ? (