Skip to content

Commit

Permalink
Creator: Pass a default child component to prevent JS error
Browse files Browse the repository at this point in the history
Fixes #598
Props @t-hamano, @jhimross, bmalsht, benimub, lamarajan
  • Loading branch information
ryelle committed Sep 8, 2023
1 parent 9740495 commit 8fbad71
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export default function Header() {
<div className="pattern-header_end">
<div className="pattern-header__actions">
<SaveDraftButton />
<PreviewOptions deviceType={ deviceType } setDeviceType={ setPreviewDeviceType } />
<PreviewOptions deviceType={ deviceType } setDeviceType={ setPreviewDeviceType }>
{ () => null /* Empty function required by `PreviewOptions`. */ }
</PreviewOptions>
<SaveButton />
<PinnedItems.Slot scope="wporg/pattern-creator" />
<MoreMenu />
Expand Down

0 comments on commit 8fbad71

Please sign in to comment.