Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #122 from otoyo/fix-displaying-blocks-in-parent-block
Browse files Browse the repository at this point in the history
Fix displaying blocks in parent block
  • Loading branch information
otoyo authored Sep 4, 2022
2 parents b6a66ed + 7eaa261 commit 1b8e57b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/notion-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ const NumberedListItems = ({ blocks, level = 1 }) =>
</li>
))

const SyncedBlock = ({ block }) => block.SyncedBlock.Children.map((child: interfaces.Block) => <NotionBlock block={child} key={child.Id} />)
const SyncedBlock = ({ block }) => <NotionBlocks blocks={block.SyncedBlock.Children} />

const Toggle = ({ block }) => (
<details className={styles.toggle}>
Expand All @@ -294,7 +294,7 @@ const Toggle = ({ block }) => (
))}
</summary>
<div>
{block.Toggle.Children.map((child: interfaces.Block) => <NotionBlock block={child} key={child.Id} />)}
<NotionBlocks blocks={block.Toggle.Children} />
</div>
</details>
)
Expand Down

1 comment on commit 1b8e57b

@vercel
Copy link

@vercel vercel bot commented on 1b8e57b Sep 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

easy-notion-blog – ./

easy-notion-blog-git-main-otoyo.vercel.app
easy-notion-blog-otoyo.vercel.app
my-notion-blog-seven.vercel.app

Please sign in to comment.