Skip to content

Commit

Permalink
docs: fix syntax in block filters example (WordPress#59636)
Browse files Browse the repository at this point in the history
Co-authored-by: chrisbellboy <chrisdotdotdot@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
  • Loading branch information
3 people authored and carstingaxion committed Mar 27, 2024
1 parent cd9fffe commit 6f85e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/filters/block-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ const withMyPluginControls = createHigherOrderComponent( ( BlockEdit ) => {
return (
<>
<BlockEdit { ...props } />
{ props.isSelected && {
{ props.isSelected && (
<InspectorControls>
<PanelBody>My custom control</PanelBody>
</InspectorControls>
}}
) }
</>
);
};
Expand Down

0 comments on commit 6f85e66

Please sign in to comment.