Skip to content

Commit

Permalink
Page List Block: Remove duplicate useBlockProps hook (#42123)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jul 6, 2022
1 parent b96de4d commit 1c54e19
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/block-library/src/page-list/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,9 @@ export default function PageListEdit( { context, clientId } ) {

{ hasResolvedPages && totalPages === null && (
<div { ...blockProps }>
<div { ...blockProps }>
<Notice status={ 'warning' } isDismissible={ false }>
{ __( 'Page List: Cannot retrieve Pages.' ) }
</Notice>
</div>
<Notice status={ 'warning' } isDismissible={ false }>
{ __( 'Page List: Cannot retrieve Pages.' ) }
</Notice>
</div>
) }

Expand Down

0 comments on commit 1c54e19

Please sign in to comment.