Skip to content

Commit

Permalink
Post Featured Image: Remove redundant condition used to determine mod…
Browse files Browse the repository at this point in the history
…al class (#25490)
  • Loading branch information
pierlon authored Sep 22, 2020
1 parent d2f9ceb commit e38156c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/editor/src/components/post-featured-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ function PostFeaturedImage( {
onSelect={ onUpdateImage }
unstableFeaturedImageFlow
allowedTypes={ ALLOWED_MEDIA_TYPES }
modalClass={
! featuredImageId
? 'editor-post-featured-image__media-modal'
: 'editor-post-featured-image__media-modal'
}
modalClass="editor-post-featured-image__media-modal"
render={ ( { open } ) => (
<div className="editor-post-featured-image__container">
<Button
Expand Down

0 comments on commit e38156c

Please sign in to comment.