Skip to content

Commit

Permalink
Only show BlockListAppender on 0 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 1, 2018
1 parent 68367b4 commit d356473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/components/block-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ class BlockList extends Component {
isDraggable={ isDraggable }
/>
) ) }
<BlockListAppender rootClientId={ rootClientId } />
{ blockClientIds.length === 0 &&
<BlockListAppender rootClientId={ rootClientId } />
}
</div>
);
}
Expand Down

0 comments on commit d356473

Please sign in to comment.