Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit e5a9fbc

Browse files
committed
Add optional chaining
1 parent f4746d0 commit e5a9fbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/[...slug].js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export default function Page({post}) {
4747
/>
4848
</article>
4949
</section>
50-
{post.slug === 'form-demo' && <BlockGravityForm {...post?.blocks[0]} />}
50+
{post?.slug === 'form-demo' && (
51+
<BlockGravityForm {...post?.blocks[0]} />
52+
)}
5153
</div>
5254
</Layout>
5355
)

0 commit comments

Comments
 (0)