Skip to content

Commit 3b0349d

Browse files
👖
1 parent 6979e2c commit 3b0349d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-notion-x/src/block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export const Block: React.FC<BlockProps> = (props) => {
360360
</span>
361361
</span>
362362
)
363-
let headerBlock
363+
let headerBlock = null
364364

365365
//page title takes the h1 so all header blocks are greater
366366
if (isH1) {

packages/react-notion-x/src/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const DefaultLinkMemo = React.memo(DefaultLink)
8282
const DefaultPageLink: React.FC = (props) => <a {...props} />
8383
const DefaultPageLinkMemo = React.memo(DefaultPageLink)
8484

85-
const DefaultEmbed = AssetWrapper
85+
const DefaultEmbed = (props) => <AssetWrapper {...props} />
8686
const DefaultHeader = Header
8787

8888
// eslint-disable-next-line @typescript-eslint/no-unused-vars

0 commit comments

Comments
 (0)