- { authorDetails.name } + { authorDetails?.name }
{ showBio && (- { authorDetails.description } + { authorDetails?.description }
) } @@ -222,32 +233,4 @@ function PostAuthorDisplay( { ); } -function PostAuthorEdit( props ) { - const [ postAuthor, setPostAuthor ] = useEntityProp( - 'postType', - 'post', - 'author' - ); - - const [ authorDetails, setAuthorDetails ] = useState( false ); - - if ( ! postAuthor ) { - return 'Post Author Placeholder'; - } - - if ( ! authorDetails ) { - getAuthorDetails( postAuthor, setAuthorDetails ); - } - - return ( -