Skip to content

Commit

Permalink
remove optional chain that wasn't actually needed
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Mar 17, 2023
1 parent a2f16fa commit 431b2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function CoverEdit( {
const url = useFeaturedImage
? mediaUrl
: // Ensure the url is not malformed due to sanitization through `wp_kses`.
attributes?.url?.replaceAll( '&', '&' );
attributes.url?.replaceAll( '&', '&' );
const backgroundType = useFeaturedImage
? IMAGE_BACKGROUND_TYPE
: attributes.backgroundType;
Expand Down

0 comments on commit 431b2ba

Please sign in to comment.