Skip to content

Commit

Permalink
Tweak: Show Looper appender if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Dec 17, 2024
1 parent 2698b44 commit fef4b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks/looper/components/LoopInnerBlocksRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ export function LoopInnerBlocksRenderer( props ) {
const innerBlocksProps = useInnerBlocksProps(
{},
{
renderAppender: () => (
renderAppender: () => ! innerBlocks.length ? (
<BlockAppender
clientId={ clientId }
isSelected={ isSelected }
attributes={ attributes }
/>
),
) : false,
blockContext: {
...context,
'generateblocks/loopPreviewId': previewId,
Expand Down

0 comments on commit fef4b5d

Please sign in to comment.