Skip to content

Commit

Permalink
removed redundant src and url checks from video and image.
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander committed Apr 21, 2021
1 parent cae5a5b commit 66acdbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export class ImageEdit extends Component {
icon={ this.getPlaceholderIcon() }
onFocus={ this.props.onFocus }
autoOpenMediaUpload={
isSelected && ! url && wasBlockJustInserted
isSelected && wasBlockJustInserted
}
/>
</View>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/video/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class VideoEdit extends Component {
icon={ this.getIcon( ICON_TYPE.PLACEHOLDER ) }
onFocus={ this.props.onFocus }
autoOpenMediaUpload={
isSelected && ! src && wasBlockJustInserted
isSelected && wasBlockJustInserted
}
/>
</View>
Expand Down

0 comments on commit 66acdbe

Please sign in to comment.