Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras authored and noahtallen committed Mar 17, 2020
1 parent 321afe6 commit 1e21623
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/block-library/src/post-comments/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ import { useEntityId } from '@wordpress/core-data';
function PostCommentsDisplay( { postId } ) {
return useSelect(
( select ) => {
const comments = select( 'core' ).getEntityRecords( 'root', 'comment', {
post: postId,
} );
const comments = select( 'core' ).getEntityRecords(
'root',
'comment',
{
post: postId,
}
);
return (
comments &&
comments.map( ( comment ) => <p key={ comment.id }>{ comment.content.raw }</p> )
comments.map( ( comment ) => (
<p key={ comment.id }>{ comment.content.raw }</p>
) )
);
},
[ postId ]
Expand Down

0 comments on commit 1e21623

Please sign in to comment.