From bb45772fc5880545759e33fe54291bf2ecbb5dff Mon Sep 17 00:00:00 2001 From: seaerchin Date: Fri, 8 Sep 2023 15:18:04 +0800 Subject: [PATCH] fix(homepagepreview): add default if no variant --- src/layouts/EditHomepage/HomepagePreview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/EditHomepage/HomepagePreview.tsx b/src/layouts/EditHomepage/HomepagePreview.tsx index e4d9d6410c..202cca0707 100644 --- a/src/layouts/EditHomepage/HomepagePreview.tsx +++ b/src/layouts/EditHomepage/HomepagePreview.tsx @@ -104,7 +104,7 @@ export const HomepagePreview = ({ dropdownIsActive={dropdownIsActive} toggleDropdown={toggleDropdown} ref={scrollRefs[sectionIndex] as Ref} - variant={section.hero.variant} + variant={section.hero.variant ?? "center"} /> )}