diff --git a/packages/block-library/src/cover/shared.js b/packages/block-library/src/cover/shared.js index c28f099b48523..0e18d28372764 100644 --- a/packages/block-library/src/cover/shared.js +++ b/packages/block-library/src/cover/shared.js @@ -72,8 +72,9 @@ export function attributesFromMedia( setAttributes, dimRatio ) { id: media.id, alt: media?.alt, backgroundType: mediaType, + focalPoint: undefined, ...( mediaType === VIDEO_BACKGROUND_TYPE - ? { focalPoint: undefined, hasParallax: undefined } + ? { hasParallax: undefined } : {} ), } ); };