Skip to content

Commit

Permalink
add optional chain to length. (#59658)
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit authored and andrewserong committed Mar 12, 2024
1 parent ab09164 commit 49a3b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ScreenColors() {
/>
<div className="edit-site-global-styles-screen-colors">
<VStack spacing={ 3 }>
{ !! colorVariations.length && (
{ !! colorVariations?.length && (
<ColorVariations variations={ colorVariations } />
) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ScreenTypography() {
/>
<div className="edit-site-global-styles-screen-typography">
<VStack spacing={ 6 }>
{ !! typographyVariations.length && (
{ !! typographyVariations?.length && (
<TypographyVariations />
) }
{ ! window.__experimentalDisableFontLibrary && (
Expand Down

0 comments on commit 49a3b75

Please sign in to comment.