From c87cb3dbd01bd2dc6a8fa55d9a9512b44e9abc7e Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Mon, 9 Sep 2024 11:56:12 +0200 Subject: [PATCH] Update website/src/components/Generator/internal/Preview.tsx Co-authored-by: SEY <6782188+shuaiey@users.noreply.github.com> --- website/src/components/Generator/internal/Preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/Generator/internal/Preview.tsx b/website/src/components/Generator/internal/Preview.tsx index 39a4b51..8ef2adb 100644 --- a/website/src/components/Generator/internal/Preview.tsx +++ b/website/src/components/Generator/internal/Preview.tsx @@ -91,7 +91,7 @@ export const Preview = React.forwardRef(({}: Props, deckRef: any) => { // if not exist, a random number 30 is assigned .domain([ "1", - geoData?.cantons?.features?.length + geoData.cantons?.features?.length ? `${geoData?.cantons?.features?.length}` : "30", ])